Home > @magiclane/maps-sdk > RotationRate

RotationRate class

Gyroscope rotation rate sensor data.

Measures the rate of rotation around the device's axes. Used to detect turns and angular movement.

Sensor Data Source

Signature:

export declare class RotationRate extends GemAutoreleaseObject implements SenseData 

Extends: GemAutoreleaseObject

Implements: SenseData

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the RotationRate class.

Properties

Property

Modifiers

Type

Description

acquisitionTime

readonly

Date

Acquisition time

type

readonly

DataType

Get data type

x

readonly

number

The rotation rate around the X axis in radians per second.

y

readonly

number

The rotation rate around the Y axis in radians per second.

z

readonly

number

The rotation rate around the Z axis in radians per second.

Methods

Method

Modifiers

Description

toJson()

Serialize to JSON