Contents

simd_quaternion(_:)

Declaration

func simd_quaternion(_ matrix: simd_half4x4) -> simd_quath

Discussion

Construct a quaternion from a 4x4 rotation matrix.

The last row and column of the matrix are ignored. This function is equivalent to calling simd_quaternion with the upper-left 3x3 submatrix .