MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / projectBox

Function projectBox

deps/physx/physx/source/geomutils/src/GuMTD.cpp:301–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301static PX_FORCE_INLINE void projectBox(PxReal& min, PxReal& max, const PxVec3& axis, const Box& box)
302{
303 const PxReal boxCen = box.center.dot(axis);
304 const PxReal boxExt =
305 PxAbs(box.rot.column0.dot(axis)) * box.extents.x
306 + PxAbs(box.rot.column1.dot(axis)) * box.extents.y
307 + PxAbs(box.rot.column2.dot(axis)) * box.extents.z;
308
309 min = boxCen - boxExt;
310 max = boxCen + boxExt;
311}
312
313static bool PxcTestAxis(const PxVec3& axis, const Segment& segment, PxReal radius, const Box& box, PxReal& depth)
314{

Callers 1

PxcTestAxisFunction · 0.70

Calls 2

PxAbsFunction · 0.85
dotMethod · 0.45

Tested by

no test coverage detected