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

Function inside

source/core/gamefuncs.cpp:397–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395//==========================================================================
396
397int inside(double x, double y, const sectortype* sect)
398{
399 if (sect)
400 {
401 int64_t acc = 1;
402 for (auto& wal : sect->walls)
403 {
404 acc ^= checkforinside(x, y, wal.pos, wal.point2Wall()->pos);
405 }
406 return acc < 0;
407 }
408 return -1;
409}
410
411//==========================================================================
412//

Callers 11

dofurnitureFunction · 0.85
testquadinsectFunction · 0.85
GetUpperLowerSectorFunction · 0.85
GetOverlapSectorFunction · 0.85
GetOverlapSector2Function · 0.85
doPlayerInputFunction · 0.85
SquareDistToSectorFunction · 0.85
checkSectorPlaneHitFunction · 0.85
FindBestSectorFunction · 0.85
inside0Function · 0.85
insideZFunction · 0.85

Calls 2

checkforinsideFunction · 0.85
point2WallMethod · 0.80

Tested by

no test coverage detected