Rotation class
Rotation
is like an angle that may exceed 360° in the positive or negative
direction.
- Available Extensions
Constructors
- Rotation.fromAngle(Angle angle)
- Rotation.fromDegrees(num degrees)
-
const
- Rotation.fromRadians(num radians)
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduceToAngle(
) → Angle -
Returns an
Angle
that is equivalent to thisRotation
with all 360° cycles removed. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
num scalar) → Rotation -
Multiplies this
Rotation
by the givenscalar
. -
operator +(
Rotation other) → Rotation -
Returns the sum of this
Rotation
and theother
Rotation
. -
operator -(
Rotation other) → Rotation -
Returns the subtraction of
other
from thisRotation
. -
operator /(
num scalar) → Rotation -
Divides this
Rotation
by the givenscalar
. -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → dynamic -
Returns an inverted version of this
Rotation
, e.g., -90° to 90°.