CreatePosition<T extends Position> typedef

CreatePosition<T extends Position> = T Function({double? m, required double x, required double y, double? z})

Creates a new position of T from x and y, and optional z and m.

For projected or cartesian positions (Projected), coordinates axis are applied as is.

For geographic positions (Geographic), coordinates are applied as: x => lon, y => lat, z => elev, m => m

Implementation

typedef CreatePosition<T extends Position> = T Function({
  required double x,
  required double y,
  double? z,
  double? m,
});