MCPcopy Create free account
hub / github.com/axmolengine/axmol / projectPoly

Function projectPoly

3rdparty/recast/DetourCommon.cpp:272–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272static void projectPoly(const float* axis, const float* poly, const int npoly,
273 float& rmin, float& rmax)
274{
275 rmin = rmax = dtVdot2D(axis, &poly[0]);
276 for (int i = 1; i < npoly; ++i)
277 {
278 const float d = dtVdot2D(axis, &poly[i*3]);
279 rmin = dtMin(rmin, d);
280 rmax = dtMax(rmax, d);
281 }
282}
283
284inline bool overlapRange(const float amin, const float amax,
285 const float bmin, const float bmax,

Callers 1

dtOverlapPolyPoly2DFunction · 0.85

Calls 3

dtVdot2DFunction · 0.85
dtMinFunction · 0.85
dtMaxFunction · 0.85

Tested by

no test coverage detected