Magnetometer coordinate systems
Device coordinate system
When you work with the magnetometer, you actively use two coordinate systems. The device coordinate system corresponds to the orientation of a BlackBerry® device. In the device coordinate system, the X-axis is parallel to the width dimension of the BlackBerry device display. The Y-axis is parallel to the height dimension of the BlackBerry device display. The Z-axis is parallel to the thickness (front to back) of the BlackBerry device.
World coordinate system
The world coordinate system corresponds to the magnetic field of the earth. In the world coordinate system, the Z-axis is normal to the surface of the earth and points towards the sky. The Y-axis is a tangent to the surface of the earth and points towards the magnetic north pole. The X-axis is a tangent to the surface of the earth and is orthogonal to both the Z-axis and Y-axis. The X-axis points appropriately east.