Back to class index
| Polyhedron::ClosestPointConvexSyntaxfloat4 Polyhedron::ClosestPointConvex(const float4 &point) const; [19 lines of code]Returns the closest point on this This function behaves exactly like ClosestPoint(), except this version of the test assumes this polyhedron is convex, and uses a faster method of finding the closest point. Note This function assumes that this polyhedron is closed and the edges are not self-intersecting. See AlsoWork in progress:Todo: in float4 Polyhedron::ClosestPointConvex(const float4 &point) const: Add ClosestPointConvex(Line/LineSegment/Ray/Plane/Triangle/Polygon/Circle/Disc/AABB/OBB/Sphere/Capsule/Frustum/Polyhedron). |