Click or drag to resize
DigitalRuneGeometryHelperGetClosestPoints Method (Plane, LineSegment, Vector3F, Vector3F)
Gets the closest points of a line and a plane.

Namespace: DigitalRune.Geometry
Assembly: 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
)

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