GeoEllipse class

The GeoEllipse class defines an geometric ellipse with horizontal radius xRadius, and vertical radius yRadius. The class may be used to calculate coordinates on the ellipse given an angle in radians or degrees.

Implementers

Constructors

GeoEllipse(double xRadius, double yRadius)
Creates a new instance of GeoEllipse with horizontal radius xRadius, and vertical radius yRadius

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
xRadius double
final
yRadius double
final

Methods

coordinate(GeoAngle angle, [GeoCoordinate2D? center]) GeoCoordinate2D
Get coordinate on an ellipse centered at center at an angle given in GeoAngle (either radian or degree). If center is not specified, origin (0,0) is assumed.
coordinateByDegree(double angle, [GeoCoordinate2D? center]) GeoCoordinate2D
Get coordinate on an ellipse centered at center at an angle given in degrees. If center is not specified, origin (0,0) is assumed.
coordinateByRadian(double angle, [GeoCoordinate2D? center, double factor = 1.0]) GeoCoordinate2D
Get coordinate on an ellipse centered at center at an angle given in radians. If center is not specified, origin (0,0) is assumed. Factor factor is multiplied with the amplitude at the angle to support polar charting
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
String representation of GeoEllipse showing horizontal (x) radius, and vertical (y) radius.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited