x property
Describes the acceleration (in m/s²) of the host device in motion along the X, axis.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
ptr = object.x |
Property values
Type: double
Standards information
Remarks
Acceleration of the host device is relative to the Earth coordinate frame at the user's location, where the X axis is in the ground plane, perpendicular to the North axis and positive towards the East.
See also
Show:
