Click or drag to resize
DigitalRuneGeometryHelperGetClosestPoints Method (Plane, Line, 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,
	Line line,
	out Vector3F pointOnPlane,
	out Vector3F pointOnLine
)

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