Click or drag to resize
DigitalRuneGeometryHelperGetClosestPoint Method (Line, Vector3F, Vector3F)
Gets the closest point of a line 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 GetClosestPoint(
	Line line,
	Vector3F point,
	out Vector3F closestPointOnLine
)

Parameters

line
Type: DigitalRune.Geometry.ShapesLine
The line.
point
Type: DigitalRune.Mathematics.AlgebraVector3F
The point.
closestPointOnLine
Type: DigitalRune.Mathematics.AlgebraVector3F
The point on the line that is closest to point.

Return Value

Type: Boolean
if the point is on the line.
See Also