Click or drag to resize
DigitalRuneGeometryHelper.GetClosestPoints 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.Shapes.LineSegment
The line segment.
line
Type: DigitalRune.Geometry.Shapes.Line
The line.
pointOnLine
Type: DigitalRune.Mathematics.Algebra.Vector3F
The point on line that is closest to segment.
pointOnSegment
Type: DigitalRune.Mathematics.Algebra.Vector3F
The point on segment that is closest to line.

Return Value

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