Click or drag to resize
DigitalRuneGeometryHelperGetClosestPoints Method (LineSegment, Vector3F, Vector3F)
Gets the closest point of a line segment to a point.

Namespace: DigitalRune.Geometry
Assembly: 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
)

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