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

Method projectPoint

core/3d/OBB.cpp:336–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336float OBB::projectPoint(const Vec3& point, const Vec3& axis) const
337{
338 float dot = axis.dot(point);
339 float ret = dot * point.length();
340 return ret;
341}
342
343void OBB::getInterval(const OBB& box, const Vec3& axis, float& min, float& max) const
344{

Callers

nothing calls this directly

Calls 2

dotMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected