GeoAngle class

The GeoAngle class defines an angle that may be given in degrees or radians (but not both). It automatically converts angles to degrees and radians for easier access

Constructors

GeoAngle({double? degree, double? radian})
Constructor for GeoAngle. Either degree or radians must be defined, but NOT both.

Properties

degree double
The angle in degrees.
latefinal
hashCode int
The hash code for this object.
no setteroverride
radian double
The angle in radians.
latefinal
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
toString() String
A string representation of angle, showing angle in both radians and degrees.
override

Operators

operator *(Object other) GeoAngle
Multiply an angle
operator +(Object other) GeoAngle
Add two angles
operator -(Object other) GeoAngle
Subtract two angles
operator /(Object other) GeoAngle
Divide an angle
operator ==(Object other) bool
Compare two angles for equality.
override
operator unary-() GeoAngle
negative of angle

Static Properties

angle180 GeoAngle
A static GeoAngle representing 180 degrees
final
angle360 GeoAngle
a static GeoAngle representing 360 degrees
final
zero GeoAngle
A static GeoAngle representing 0 degrees (0 radians).
final

Static Methods

toDegree(double radian) double
Static function for converting radians to degrees (Note: pi = 180 degrees)
toRadian(double degree) double
Static function for converting degress to radians (Note: pi = 180 degrees)