| GeometryHelperGetClosestPoints Method (Plane, Line, Vector3F, Vector3F) |
Gets the closest points of a line and a plane.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static bool GetClosestPoints(
Plane plane,
Line line,
out Vector3F pointOnPlane,
out Vector3F pointOnLine
)
Public Shared Function GetClosestPoints (
plane As Plane,
line As Line,
<OutAttribute> ByRef pointOnPlane As Vector3F,
<OutAttribute> ByRef pointOnLine As Vector3F
) As Boolean
public:
static bool GetClosestPoints(
Plane plane,
Line line,
[OutAttribute] Vector3F% pointOnPlane,
[OutAttribute] Vector3F% pointOnLine
)
static member GetClosestPoints :
plane : Plane *
line : Line *
pointOnPlane : Vector3F byref *
pointOnLine : Vector3F byref -> bool
Parameters
- plane
- Type: DigitalRune.Geometry.ShapesPlane
The plane. - line
- Type: DigitalRune.Geometry.ShapesLine
The line. - pointOnPlane
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on plane that is closest to line.
- pointOnLine
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on line that is closest to plane.
Return Value
Type:
Boolean if the line and the plane are touching
(
pointOnLine and
pointOnPlane are identical);
otherwise
Remarks
The plane is treated as a real 2D plane - not as a 3D half-space.
See Also