Click or drag to resize

UtilAngleBetweenLineAndPlane Method

Returns the angle (in radians) between a unit Vector3 direction, and a plane (specified by the unit normal Vector3 to the plane).

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static double AngleBetweenLineAndPlane(
	Vector3 normalToPlane,
	Vector3 direction
)

Parameters

normalToPlane
Type: Microsoft.DirectXVector3
Plane unit Vector3 normal.
direction
Type: Microsoft.DirectXVector3
Line unit Vector3.

Return Value

Type: Double
The angle (in radians) between direction and the plane.
Remarks
See Also