Attitude class
Represents the device's attitude (orientation) information.
The attitude includes the device's rotation in 3D space using a quaternion representation, as well as heading information in both degrees and radians. This is typically used for AR (Augmented Reality) features and orientation tracking (heading arrow of the blue dot on the map).
Constructors
- Attitude({required Quaternion quaternion, int? time, double? accuracy, required double headingDegrees, required double headingRadians})
- Attitude.fromMap(dynamic attitudeMap)
-
Creates an Attitude instance from a map representation.
factory
Properties
- accuracy → double?
-
The accuracy of the attitude measurement.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headingDegrees → double
-
The device's heading in degrees (0-360).
final
- headingRadians → double
-
The device's heading in radians (0-2π).
final
- quaternion → Quaternion
-
The quaternion representation of the device's 3D rotation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → int?
-
The timestamp when the attitude was measured.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited