coordinateByDegree method

GeoCoordinate2D coordinateByDegree(
  1. double angle, [
  2. GeoCoordinate2D? center
])

Get coordinate on an ellipse centered at center at an angle given in degrees. If center is not specified, origin (0,0) is assumed.

Implementation

GeoCoordinate2D coordinateByDegree(double angle, [GeoCoordinate2D? center]) {
  return coordinateByRadian(GeoAngle.toRadian(angle), center);
}