| GeometryHelperGetClosestPoints Method (LineSegment, Vector3F, Vector3F) |
Gets the closest point of a line segment to a point.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static bool GetClosestPoints(
LineSegment lineSegment,
Vector3F point,
out Vector3F closestPointOnLineSegment
)
Public Shared Function GetClosestPoints (
lineSegment As LineSegment,
point As Vector3F,
<OutAttribute> ByRef closestPointOnLineSegment As Vector3F
) As Boolean
public:
static bool GetClosestPoints(
LineSegment lineSegment,
Vector3F point,
[OutAttribute] Vector3F% closestPointOnLineSegment
)
static member GetClosestPoints :
lineSegment : LineSegment *
point : Vector3F *
closestPointOnLineSegment : Vector3F byref -> bool
Parameters
- lineSegment
- Type: DigitalRune.Geometry.ShapesLineSegment
The line segment. - point
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point. - closestPointOnLineSegment
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on the line segment that is closest to point.
Return Value
Type:
Boolean if the
point is on the line segment; otherwise
.
See Also