Home > @magiclane/maps-sdk > Attitude
Attitude class
Device orientation attitude data in 3D space.
Describes the device's orientation expressed as Euler angles (roll, pitch, yaw) along with optional noise variance measurements.
Sensor Data Source
Signature:
export declare class Attitude 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 Attitude class.
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Date |
Acquisition time | |
|
|
boolean |
Whether pitch noise data is available. | |
|
|
boolean |
Whether roll noise data is available. | |
|
|
boolean |
Whether yaw noise data is available. | |
|
|
number |
The device pitch angle in degrees. | |
|
|
number |
The variance (noise) of the pitch measurement in degrees squared. | |
|
|
number |
The device roll angle in degrees. | |
|
|
number |
The variance (noise) of the roll measurement in degrees squared. | |
|
|
Get data type | ||
|
|
number |
The device yaw angle in degrees. | |
|
|
number |
The variance (noise) of the yaw measurement in degrees squared. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Serialize to JSON |