Back to class index
| Polygon::ClosestPointSyntaxfloat4 Polygon::ClosestPoint(const LineSegment &lineSegment, float4 *lineSegmentPt) const; [22 lines of code]float4 Polygon::ClosestPoint(const LineSegment &lineSegment) const; [4 lines of code] float4 Polygon::ClosestPoint(const float4 &point) const; [19 lines of code] Computes the closest point on this polygon to the given object. If the other object intersects this polygon, this function will return an arbitrary point inside the region of intersection. Parametersconst LineSegment &lineSegmentThe line segment to find the closest point to. float4 *lineSegmentPt [out]If specified, receives the closest point on the line segment to this polygon. This pointer may be null. See AlsoWork in progress:Todo: in float4 Polygon::ClosestPoint(const LineSegment &lineSegment, float4 *lineSegmentPt) const: Add ClosestPoint(Line/Ray/Plane/Triangle/Polygon/Circle/Disc/AABB/OBB/Sphere/Capsule/Frustum/Polyhedron). |