Back to class index
| OBB::ClosestPointSyntaxfloat4 OBB::ClosestPoint(const float4 &point) const; [23 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. See AlsoWork in progress:Todo: in float4 OBB::ClosestPoint(const float4 &point) const: Add ClosestPoint(Line/Ray/LineSegment/Plane/Triangle/Polygon/Circle/Disc/AABB/OBB/Sphere/Capsule/Frustum/Polyhedron). |