| QuaternionFCreateRotation Method (Matrix33F) |
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 QuaternionF CreateRotation(
Matrix33F rotationMatrix
)
Public Shared Function CreateRotation (
rotationMatrix As Matrix33F
) As QuaternionF
public:
static QuaternionF CreateRotation(
Matrix33F rotationMatrix
)
static member CreateRotation :
rotationMatrix : Matrix33F -> QuaternionF
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