bbox static method

GeoBounds<GeoPoint2> bbox({
  1. required double minLon,
  2. required double minLat,
  3. double? minElev,
  4. required double maxLon,
  5. required double maxLat,
  6. double? maxElev,
})

With minimum and maximum pairs of longitude and latitude (+optional elev).

Implementation

static GeoBounds<GeoPoint2> bbox({
  required double minLon,
  required double minLat,
  double? minElev,
  required double maxLon,
  required double maxLat,
  double? maxElev,
}) =>
    GeoBounds<GeoPoint2>.of(
      min: minElev != null
          ? GeoPoint3.lonLatElev(minLon, minLat, minElev)
          : GeoPoint2.lonLat(minLon, minLat),
      max: maxElev != null
          ? GeoPoint3.lonLatElev(maxLon, maxLat, maxElev)
          : GeoPoint2.lonLat(maxLon, maxLat),
    );