init(vector:)
Creates a new quaternion from a four-element vector.
Declaration
init(vector: simd_double4)Parameters
- vector:
The vector that supplies the imaginary part of the quaternion from elements
0,1, and2; and the real part from element3.