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

degrees num
Angle expressed as degrees.
final
hashCode int
The hash code for this object.
no setteroverride
radians num
Angle expressed as radians.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduceToAngle() Angle
Returns an Angle that is equivalent to this Rotation with all 360° cycles removed.
toString() String
A string representation of this object.
override

Operators

operator *(num scalar) Rotation
Multiplies this Rotation by the given scalar.
operator +(Rotation other) Rotation
Returns the sum of this Rotation and the other Rotation.
operator -(Rotation other) Rotation
Returns the subtraction of other from this Rotation.
operator /(num scalar) Rotation
Divides this Rotation by the given scalar.
operator ==(Object other) bool
The equality operator.
override
operator unary-() → dynamic
Returns an inverted version of this Rotation, e.g., -90° to 90°.

Constants

zero → const Rotation