See Also: CMAttitude Members
This class describes the attitude of the device (see CoreMotion.CMAttitude) relative to an initial attitude (see CMMotionManager.StartDeviceMotionUpdates(CMAttitudeReferenceFrame)). The axes of rotation are defined as:
If a device's original orientation is lying flat on a table, with the bottom of the device facing the user:
Change: | Rotation Around: | Caused By: |
---|---|---|
+Yaw | Z | The device is rotated counter-clockwise without lifting any edges. |
+Pitch | X | The device is rotated towards its bottom. |
+Roll | Y | The device is rotated towards its right side. |
The attitude can be retrieved using either:
Form | Property: |
---|---|
Euler Angles | CMAttitude.Roll, CMAttitude.Pitch, CMAttitude.Yaw. |
Rotation Matrix | CMAttitude.RotationMatrix. |
Quaternion | CoreMotion.Quaternion |