Angle class final
A quantity representing a plane angle.
Constructors
-
Angle(double value, UnitOfMeasure<
Angle> unit)
Properties
- acos → double
-
The arccosine of this angle's value (in radians).
no setter
- asin → double
-
The arcsine of this angle's value (in radians).
no setter
- cos → double
-
The cosine of this angle.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sin → double
-
The sine of this angle.
no setter
- tan → double
-
The tangent of this angle.
no setter
- toArcminutes → Angle
-
Converts this to arcminutes (amin).
no setter
- toArcseconds → Angle
-
Converts this to arcseconds (asec).
no setter
- toDegrees → Angle
-
Converts this to degrees (°).
no setter
- toGradians → Angle
-
Converts this to gradians (grad).
no setter
- toRadians → Angle
-
Converts this to radians (rad).
no setter
- toTurns → Angle
-
Converts this to turns (full rotations).
no setter
-
unit
→ UnitOfMeasure<
Angle> -
The unit of measure that value is expressed in.
finalinherited
- value → double
-
The raw numeric value of this quantity expressed in unit.
finalinherited
Methods
-
equivalentTo(
Quantity< Angle> other) → bool -
Returns true if this quantity represents the same physical magnitude as
other, regardless of which unit each is expressed in.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
to(
UnitOfMeasure< Angle> uom) → double -
Converts this quantity to
uomand returns the raw double value.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
Angle that) → Angle -
Returns the sum of this quantity and
that, expressed in unit.inherited -
operator -(
Angle that) → Angle -
Returns the difference of this quantity and
that, expressed in unit.inherited -
operator /(
Time that) → AngularVelocity -
Divides this angle by
thattime to produce an AngularVelocity in rad/s. -
operator <(
Angle that) → bool -
Returns true if this quantity is less than
that.inherited -
operator <=(
Angle that) → bool -
Returns true if this quantity is less than or equal to
that.inherited -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Angle that) → bool -
Returns true if this quantity is greater than
that.inherited -
operator >=(
Angle that) → bool -
Returns true if this quantity is greater than or equal to
that.inherited
Static Methods
Constants
- arcminutes → const Arcminutes
- Unit for arcminutes (amin).
- arcseconds → const Arcseconds
- Unit for arcseconds (asec).
- degrees → const Degrees
- Unit for degrees (°).
- gradians → const Gradians
- Unit for gradians (grad).
- radians → const Radians
- Unit for radians (rad).
- turns → const Turns
- Unit for turns (full rotations).
-
units
→ const Set<
AngleUnit> - All supported Angle units.