backward property

  1. @override
(List<num> Function(List<num>)?) backward
override

Returns a new array [longitude, latitude] in degrees representing the point of the given rotated point; the inverse of forward. The point must be specified as a two-element array [longitude, latitude] in degrees.

Implementation

@override
get backward => (coordinates) {
      coordinates = rotate
          .backward!([coordinates[0] * radians, coordinates[1] * radians]);
      coordinates[0] *= degrees;
      coordinates[1] *= degrees;
      return coordinates;
    };