Skip to content

Commit

Permalink
another attempt to fix collinearity testing on MacOS (C++) (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Apr 27, 2024
1 parent e9fe6b0 commit cef6a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CPP/Clipper2Lib/src/clipper.engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,9 +1121,9 @@ namespace Clipper2Lib {
inline bool IsCollinear(const Point64& pt1,
const Point64& sharedPt, const Point64& pt2) // #777
{
#ifdef __APPLE__
#ifdef __aarch64__
double cp = CrossProduct(pt1, sharedPt, pt2);
return std::fabs(cp) < 0.00000001;
return std::fabs(cp) < 0.0000001;
#else
return CrossProduct(pt1, sharedPt, pt2) == 0;
#endif
Expand Down

0 comments on commit cef6a10

Please sign in to comment.