Orientation class

The orientation may originate from different sources, such as the sensors of a smartphone or an external IMU.

Constructors

Orientation(BodyFrame? frame, double? heading, double? headingAccuracy, double? magneticDeclination, double? pitch, double? pitchAccuracy, double? roll, double? rollAccuracy, Duration? timestamp)
Constructs a new Orientation instance using the provided parameters.

Properties

frame BodyFrame?
The frame that is used with the orientation. If not available, the value is null.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
heading ↔ double?
Heading (degree). Rotation about the vertical axis or the clockwise angle between the compass direction and the true north. If available, the value is guaranteed to be in the range [0,360); North is at 0 degrees, East is at 90 degrees, South is at 180 degrees, and West is at 270 degrees. If not available, the value is null.
getter/setter pair
headingAccuracy ↔ double?
Estimated heading accuracy (degree). 68th percentile of individual accuracies. If not available, the value is null.
getter/setter pair
magneticDeclination ↔ double?
Magnetic declination (degree). The clockwise angle between the true north and the magnetic north. If not available, the value is null.
getter/setter pair
pitch ↔ double?
Pitch (degree). Rotation about the lateral axis or the angle between the horizontal plane and the plane parallel to the ground. If available, the value is guaranteed to be in the range [-180,180]; positive value means that the horizontal plane is tilted up, negative value means that the horizontal plane is tilted down, and zero means that the planes are parallel. If not available, the value is null.
getter/setter pair
pitchAccuracy ↔ double?
Estimated pitch accuracy (degree). 68th percentile of individual accuracies. If not available, the value is null.
getter/setter pair
roll ↔ double?
Roll (degree). Rotation about the longitudal axis or the angle between the vertical plane and the plane perpendicular to the ground. If available, the value is guaranteed to be in the range [-180,180]; positive value means that the vertical plane is tilted to right, negative value means that the vertical plane is tilted to left, and zero means that the planes are parallel. If not available, the value is null.
getter/setter pair
rollAccuracy ↔ double?
Estimated roll accuracy (degree). 68th percentile of individual accuracies. If not available, the value is null.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp ↔ Duration?
The time instant at which the orientation was determined, relative to the device boot time (millisecond). If not available, the value is null.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.