MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / intersect

Function intersect

Source/ThirdParty/recastnavigation/RecastMesh.cpp:224–233  ·  view source on GitHub ↗

Returns true iff segments ab and cd intersect, properly or improperly.

Source from the content-addressed store, hash-verified

222
223// Returns true iff segments ab and cd intersect, properly or improperly.
224static bool intersect(const int* a, const int* b, const int* c, const int* d)
225{
226 if (intersectProp(a, b, c, d))
227 return true;
228 else if (between(a, b, c) || between(a, b, d) ||
229 between(c, d, a) || between(c, d, b))
230 return true;
231 else
232 return false;
233}
234
235static bool vequal(const int* a, const int* b)
236{

Callers 2

diagonalieFunction · 0.70
PerformOperationMethod · 0.50

Calls 2

intersectPropFunction · 0.70
betweenFunction · 0.70

Tested by

no test coverage detected