Interface DeviceMotionEventRotationRate
interface DeviceMotionEventRotationRate {
alpha: number | null;
beta: number | null;
gamma: number | null;
}
alpha: number | null;
beta: number | null;
gamma: number | null;
}
Properties
Readonlyalpha
alpha: number | null
The alpha read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Z axis, in degrees per second.
Readonlybeta
beta: number | null
The beta read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the X axis, in degrees per second.
Readonlygamma
gamma: number | null
The gamma read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Y axis, in degrees per second.
A
DeviceMotionEventRotationRateinterface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes. Available only in secure contexts.MDN Reference