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: 19.01.00
Syntax
C#
public static double AngleBetweenLineAndPlane(
	Vector3 normalToPlane,
	Vector3 direction
)

Parameters

normalToPlane  Vector3
Plane unit Vector3 normal.
direction  Vector3
Line unit Vector3.

Return Value

Double
The angle (in radians) between direction and the plane.
Remarks
A unit Vector3 is one such that Length equals one.
See Also