Click or drag to resize
DigitalRuneQuaternionDCreateRotation Method (Matrix33D)
Creates a unit quaternion that specifies the same rotation as the given rotation matrix.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static QuaternionD CreateRotation(
	Matrix33D rotationMatrix
)

Parameters

rotationMatrix
Type: DigitalRune.Mathematics.AlgebraMatrix33D
A orientation matrix that specifies a rotation.

Return Value

Type: QuaternionD
The creates unit quaternion that describes the same rotation as the rotation matrix.
Remarks
The given matrix is converted into a unit quaternion that specifies the same rotation.
See Also