Click or drag to resize

UtilRotationAngle Method

Determines the (unsigned) rotation angle for the upper 3x3 rotation part of the specified matrix.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static double RotationAngle(
	Matrix m
)

Parameters

m
Type: Microsoft.DirectXMatrix
The matrix.

Return Value

Type: Double
The (unsigned) rotation angle, in the interval [0, PI].
Remarks
This returns the shortest angle of rotation required in order to align the indentity rotation with the upper 3x3 rotation part of the specified matrix. The redturned angle is guaranteed to be in the interval [0, PI].
See Also