Back to class index
| OBB::ClosestPointSyntaxfloat3 OBB::ClosestPoint(const float3 &point) const; [9 lines of code]Computes the closest point inside this OBB to the given point. The implementation of this function is from Christer Ericson's Real-Time Collision Detection, p.133. If the target point lies inside this OBB, then that point is returned. Performance28.737nsecs/call ≈ 34.8M calls/second ≈ 579.98k calls/frame (@ 60fps). See AlsoWork in progress:Todo: in float3 OBB::ClosestPoint(const float3 &point) const: Add ClosestPoint(Line/Ray/LineSegment/Plane/Triangle/Polygon/Circle/Disc/AABB/OBB/Sphere/Capsule/Frustum/Polyhedron). Leave a Comment |