GeoPoint2m constructor

const GeoPoint2m({
  1. required double lon,
  2. required double lat,
  3. double m = 0.0,
})

A geographic position from lon, lat and m (m is zero by default).

Longitude is normalized to the range [-180.0, 180.0[ using the formula (lon + 180.0) % 360.0 - 180.0 and latitude is clamped to the range [-90.0, 90.0].

Implementation

const GeoPoint2m({required super.lon, required super.lat, this.m = 0.0});