NavigationOrientation class
Orientation with a reference direction pointing up from the origin, with a clockwise rotation.
- Implemented types
Constructors
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cartesianToPolar(
Point< num> point) → PolarCoord -
Maps the given
cartesianCoord
within this orientation to aPolarCoord
.override -
fromScreenPoint(
Point< num> point) → Point<num> -
Returns the given screen-based
point
as seen by this coordinate system.override -
isAngleClockwise(
Angle angle) → bool -
Returns true if the given
angle
represents a clockwise movement from the 0° axis, or false otherwise.override -
isAngleCounterClockwise(
Angle angle) → bool -
Returns true if the given
angle
represents a counter-clockwise movement from the 0° axis, or false otherwise.override -
isRotationClockwise(
Rotation rotation) → bool -
Returns true if the given
rotation
represents a clockwise movement from the 0° axis, or false otherwise.override -
isRotationCounterClockwise(
Rotation rotation) → bool -
Returns true if the given
rotation
represents a counter-clockwise movement from the 0° axis, or false otherwise.override -
makeAngleClockwise(
Angle angle) → Angle -
Returns a clockwise version of the given
angle
, as seen through the givenorientation
.override -
makeAngleCounterClockwise(
Angle angle) → Angle -
Returns a counter-clockwise version of the given
angle
, as seen through the givenorientation
.override -
makeRotationClockwise(
Rotation rotation) → Rotation -
Returns a clockwise version of the given
rotation
, as seen through the givenorientation
.override -
makeRotationCounterClockwise(
Rotation rotation) → Rotation -
Returns a counter-clockwise version of the given
rotation
, as seen through the givenorientation
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
polarToCartesian(
PolarCoord polarCoord) → Point< num> -
Maps the given
polarCoord
to Cartesian coordinates within this orientation.override -
toScreenAngle(
Angle angle) → Angle -
Returns the given
angle
as seen by a screen's coordinate system.override -
toScreenPoint(
Point< num> point) → Point<num> -
Returns the given
point
as seen by a screen's coordinate system.override -
toScreenRotation(
Rotation rotation) → Rotation -
Returns the given
rotation
as seen by a screen's coordinate system.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited