| GeometryHelperGetClosestPoints Method (Plane, LineSegment, 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,
LineSegment lineSegment,
out Vector3F pointOnPlane,
out Vector3F pointOnLineSegment
)
Public Shared Function GetClosestPoints (
plane As Plane,
lineSegment As LineSegment,
<OutAttribute> ByRef pointOnPlane As Vector3F,
<OutAttribute> ByRef pointOnLineSegment As Vector3F
) As Boolean
public:
static bool GetClosestPoints(
Plane plane,
LineSegment lineSegment,
[OutAttribute] Vector3F% pointOnPlane,
[OutAttribute] Vector3F% pointOnLineSegment
)
static member GetClosestPoints :
plane : Plane *
lineSegment : LineSegment *
pointOnPlane : Vector3F byref *
pointOnLineSegment : Vector3F byref -> bool
Parameters
- plane
- Type: DigitalRune.Geometry.ShapesPlane
The plane. - lineSegment
- Type: DigitalRune.Geometry.ShapesLineSegment
The line segment. - pointOnPlane
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on plane that is closest to lineSegment.
- pointOnLineSegment
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point on lineSegment that is closest to plane.
Return Value
Type:
Boolean if the line segment and the plane are touching
(
pointOnLineSegment and
pointOnPlane are identical);
otherwise
Remarks
The plane is treated as a real 2D plane - not as a 3D half-space.
See Also