Back to class index
| Polyhedron::ClosestPointSyntaxfloat4 Polyhedron::ClosestPoint(const LineSegment &lineSegment, float4 *lineSegmentPt) const; [33 lines of code]float4 Polyhedron::ClosestPoint(const LineSegment &lineSegment) const; [4 lines of code] float4 Polyhedron::ClosestPoint(const float4 &point) const; [18 lines of code] Computes the closest point on this polyhedron to the given object. If the other object intersects this polyhedron, this function will return an arbitrary point inside the region of intersection. Note This function assumes that this polyhedron is closed and the edges are not self-intersecting. Parametersconst LineSegment &lineSegmentThe line segment to find the closest point to. float4 *lineSegmentPt [out]If specified, returns the closest point on the line segment to this polyhedron. This pointer may be null.const float4 &pointThe point to find the closest point to. See AlsoWork in progress:Todo: in float4 Polyhedron::ClosestPoint(const LineSegment &lineSegment, float4 *lineSegmentPt) const: Make lineSegmentPt an out-reference instead of an out-pointer. Todo: in float4 Polyhedron::ClosestPoint(const LineSegment &lineSegment, float4 *lineSegmentPt) const: Add ClosestPoint(Line/Ray/Plane/Triangle/Polygon/Circle/Disc/AABB/OBB/Sphere/Capsule/Frustum/Polyhedron). |