MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / isInside

Method isInside

Engine/source/math/util/decomposePoly.cpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110bool decompPoly::isInside(decompTri &tri, U8 vertIdx)
111{
112 Point3F a(mVertList[tri.getVert(0)]);
113 Point3F b(mVertList[tri.getVert(1)]);
114 Point3F c(mVertList[tri.getVert(2)]);
115 Point3F p(mVertList[vertIdx]);
116
117 return (sameSide(p,a,b,c) && sameSide(p,b,a,c) && sameSide(p,c,a,b));
118}
119
120U8 decompPoly::leftmost()
121{

Callers

nothing calls this directly

Calls 1

getVertMethod · 0.80

Tested by

no test coverage detected