---
title: "DeviceMotionEventRotationRate | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface DeviceMotionEventRotationRate

A **`DeviceMotionEventRotationRate`** interface 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](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)

interface DeviceMotionEventRotationRate {  
    [alpha](#alpha): number | null;  
    [beta](#beta): number | null;  
    [gamma](#gamma): number | null;  
}

##### Index

### Properties[](#properties)

[alpha](#alpha) [beta](#beta) [gamma](#gamma)

## Properties[](#properties-1)

### `Readonly`alpha[](#alpha)

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.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha)

### `Readonly`beta[](#beta)

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.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta)

### `Readonly`gamma[](#gamma)

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.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma)
