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

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 segment,
	Line line,
	out Vector3F pointOnLine,
	out Vector3F pointOnSegment
)

Parameters

segment
Type: DigitalRune.Geometry.ShapesLineSegment
The line segment.
line
Type: DigitalRune.Geometry.ShapesLine
The line.
pointOnLine
Type: DigitalRune.Mathematics.AlgebraVector3F
The point on line that is closest to segment.
pointOnSegment
Type: DigitalRune.Mathematics.AlgebraVector3F
The point on segment that is closest to line.

Return Value

Type: Boolean
if the line and the line segment are touching (pointOnLine and pointOnSegment are identical); otherwise .
See Also