GeoPoint3.from constructor

GeoPoint3.from(
  1. Iterable<num> coords, {
  2. int? offset,
})

A geographic position from coords, given in order: lon, lat, elev.

Implementation

factory GeoPoint3.from(Iterable<num> coords, {int? offset}) {
  final start = offset ?? 0;
  return GeoPoint3.lonLatElev(
    coords.elementAt(start).toDouble(),
    coords.elementAt(start + 1).toDouble(),
    coords.elementAt(start + 2).toDouble(),
  );
}