| GeometryHelperGetClosestPoints Method (Line, Line, Vector3F, Vector3F) |
Gets the closest points of two lines.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static bool GetClosestPoints(
Line line0,
Line line1,
out Vector3F point0,
out Vector3F point1
)
Public Shared Function GetClosestPoints (
line0 As Line,
line1 As Line,
<OutAttribute> ByRef point0 As Vector3F,
<OutAttribute> ByRef point1 As Vector3F
) As Boolean
public:
static bool GetClosestPoints(
Line line0,
Line line1,
[OutAttribute] Vector3F% point0,
[OutAttribute] Vector3F% point1
)
static member GetClosestPoints :
line0 : Line *
line1 : Line *
point0 : Vector3F byref *
point1 : Vector3F byref -> bool
Parameters
- line0
- Type: DigitalRune.Geometry.ShapesLine
The first line. - line1
- Type: DigitalRune.Geometry.ShapesLine
The second line. - point0
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on line0 that is closest to line1.
- point1
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on line1 that is closest to line0.
Return Value
Type:
Boolean if the lines are touching (
point0 and
point1 are identical); otherwise
.
See Also