| GeometryHelperGetClosestPoint Method (Line, Vector3F, Vector3F) |
Gets the closest point of a line to a point.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static bool GetClosestPoint(
Line line,
Vector3F point,
out Vector3F closestPointOnLine
)
Public Shared Function GetClosestPoint (
line As Line,
point As Vector3F,
<OutAttribute> ByRef closestPointOnLine As Vector3F
) As Boolean
public:
static bool GetClosestPoint(
Line line,
Vector3F point,
[OutAttribute] Vector3F% closestPointOnLine
)
static member GetClosestPoint :
line : Line *
point : Vector3F *
closestPointOnLine : Vector3F byref -> bool
Parameters
- line
- Type: DigitalRune.Geometry.ShapesLine
The line. - point
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point. - closestPointOnLine
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on the line that is closest to point.
Return Value
Type:
Boolean if the
point is on the line.
See Also