Click or drag to resize
DigitalRuneGeometryHelperGetClosestPoints Method (LineSegment, LineSegment, Vector3F, Vector3F)
Gets the closest points of two line segments.

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 segment0,
	LineSegment segment1,
	out Vector3F point0,
	out Vector3F point1
)

Parameters

segment0
Type: DigitalRune.Geometry.ShapesLineSegment
The first line segment.
segment1
Type: DigitalRune.Geometry.ShapesLineSegment
The second line segment.
point0
Type: DigitalRune.Mathematics.AlgebraVector3F
The point on segment0 that is closest to segment1.
point1
Type: DigitalRune.Mathematics.AlgebraVector3F
The point on segment1 that is closest to segment0.

Return Value

Type: Boolean
if the line segments are touching (point0 and point1 are identical); otherwise .
See Also