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 radiusyRadius
Properties
Methods
-
coordinate(
GeoAngle angle, [GeoCoordinate2D? center]) → GeoCoordinate2D -
Get coordinate on an ellipse centered at
center
at anangle
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 anangle
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 anangle
given in radians. If center is not specified, origin (0,0) is assumed. Factorfactor
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