GeoPoint2m constructor
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});