MonoTouch.CoreMotion.CMAttitude Class
Used to pull spacial information from the device in either quaternion, rotation matrix or with 3D angles (roll, pitch and yaw).

See Also: CMAttitude Members

Syntax

[MonoTouch.Foundation.Register("CMAttitude", true)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_4_0)]
public class CMAttitude : MonoTouch.Foundation.NSObject, MonoTouch.Foundation.INSCopying, MonoTouch.Foundation.INSSecureCoding, IDisposable

Remarks

This class describes the attitude of the device (see MonoTouch.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:
+YawZThe device is rotated counter-clockwise without lifting any edges.
+PitchXThe device is rotated towards its bottom.
+RollYThe device is rotated towards its right side.

The attitude can be retrieved using either:

FormProperty:
Euler AnglesCMAttitude.Roll, CMAttitude.Pitch, CMAttitude.Yaw.
Rotation MatrixCMAttitude.RotationMatrix.
QuaternionMonoTouch.CoreMotion.Quaternion

Related content

Requirements

Namespace: MonoTouch.CoreMotion
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0