| GeometryHelperGetClosestPoints Method (LineSegment, LineSegment, Vector3F, Vector3F) |
Gets the closest points of two line segments.
Namespace: DigitalRune.GeometryAssembly: 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
)
Public Shared Function GetClosestPoints (
segment0 As LineSegment,
segment1 As LineSegment,
<OutAttribute> ByRef point0 As Vector3F,
<OutAttribute> ByRef point1 As Vector3F
) As Boolean
public:
static bool GetClosestPoints(
LineSegment segment0,
LineSegment segment1,
[OutAttribute] Vector3F% point0,
[OutAttribute] Vector3F% point1
)
static member GetClosestPoints :
segment0 : LineSegment *
segment1 : LineSegment *
point0 : Vector3F byref *
point1 : Vector3F byref -> bool
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