MCPcopy Create free account
hub / github.com/ZDoom/Raze / insidePoly

Function insidePoly

source/core/gamefuncs.cpp:417–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415//==========================================================================
416
417int insidePoly(double x, double y, const DVector2* points, int count)
418{
419 int64_t acc = 1;
420 for (int i = 0; i < count; i++)
421 {
422 int j = (i + 1) % count;
423 acc ^= checkforinside(x, y, points[i], points[j]);
424 }
425 return acc < 0;
426}
427
428//==========================================================================
429//

Callers 3

getzrangepointFunction · 0.85
checkRangeOfFloorSpriteFunction · 0.85
insideLoopFunction · 0.85

Calls 1

checkforinsideFunction · 0.85

Tested by

no test coverage detected