| QuaternionDCreateRotation Method (Matrix33D) |
Creates a unit quaternion that specifies the same rotation as the given rotation matrix.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static QuaternionD CreateRotation(
Matrix33D rotationMatrix
)
Public Shared Function CreateRotation (
rotationMatrix As Matrix33D
) As QuaternionD
public:
static QuaternionD CreateRotation(
Matrix33D rotationMatrix
)
static member CreateRotation :
rotationMatrix : Matrix33D -> QuaternionD
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