Instance Property

quaternion

Returns a quaternion representing the device's attitude.

Declaration

var quaternion: CMQuaternion { get }

Discussion

See the discussion of the CMQuaternion type in “Constants” for further information.

See Also

Getting a Mathematical Representation of Attitude as a Quaternion

struct CMQuaternion

The type for a quaternion representing a measurement of attitude.