Click or drag to resize

UtilDistanceToPlane Method

Calculate the distance of a Vector3 from a plane.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static double DistanceToPlane(
	Vector3 point,
	Vector3 pointOnPlane,
	Vector3 planeNormal
)

Parameters

point
Type: Microsoft.DirectXVector3
Vector3 point to test.
pointOnPlane
Type: Microsoft.DirectXVector3
Vector3 point on the plane.
planeNormal
Type: Microsoft.DirectXVector3
Vector3 normal to the plane.

Return Value

Type: Double
Distance from the plane.
See Also