z property

double z
final

Acceleration force along the z axis (excluding gravity) measured in m/s^2.

This uses a right-handed coordinate system. So when the device is held upright and facing the user, positive values mean the device is moving towards the user and negative mean it is moving away from them.

Implementation

final double z;