Click or drag to resize
DigitalRuneQuaternionFCreateRotation Method (Matrix33F)
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 QuaternionF CreateRotation(
	Matrix33F rotationMatrix
)

Parameters

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

Return Value

Type: QuaternionF
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