init(_:)
Creates a new quaternion from a 4 x 4 rotation matrix.
Declaration
init(_ rotationMatrix: simd_double4x4)Parameters
- rotationMatrix:
The rotation matrix.
Discussion
This function ignores the last row and the last column of rotationMatrix, and is the equivalent of passing the upper-left 3 x 3 submatrix to init(_:).