bbox static method
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),
);