| GeometryHelperGetClosestPoints Method (LineSegment, Line, Vector3F, Vector3F) |
Gets the closest points of a line and a line segment.
Namespace: DigitalRune.GeometryAssembly: 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
)
Public Shared Function GetClosestPoints (
segment As LineSegment,
line As Line,
<OutAttribute> ByRef pointOnLine As Vector3F,
<OutAttribute> ByRef pointOnSegment As Vector3F
) As Boolean
public:
static bool GetClosestPoints(
LineSegment segment,
Line line,
[OutAttribute] Vector3F% pointOnLine,
[OutAttribute] Vector3F% pointOnSegment
)
static member GetClosestPoints :
segment : LineSegment *
line : Line *
pointOnLine : Vector3F byref *
pointOnSegment : Vector3F byref -> bool
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