MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / PointsAreClose

Function PointsAreClose

TheForceEngine/TFE_Polygon/clipper.cpp:4372–4377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4370//------------------------------------------------------------------------------
4371
4372bool PointsAreClose(IntPoint pt1, IntPoint pt2, double distSqrd)
4373{
4374 double Dx = (double)pt1.X - pt2.X;
4375 double dy = (double)pt1.Y - pt2.Y;
4376 return ((Dx * Dx) + (dy * dy) <= distSqrd);
4377}
4378//------------------------------------------------------------------------------
4379
4380OutPt* ExcludeOp(OutPt* op)

Callers 1

CleanPolygonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected