GeoBounds<T extends GeoPoint>.make constructor

GeoBounds<T extends GeoPoint>.make(
  1. Iterable<Iterable<num>> values,
  2. PointFactory<T> pointFactory
)

Geographic bounds from values with two points (both a list of nums).

Implementation

factory GeoBounds.make(
  Iterable<Iterable<num>> values,
  PointFactory<T> pointFactory,
) =>
    GeoBounds<T>.of(
      min: pointFactory.newFrom(values.elementAt(0)),
      max: pointFactory.newFrom(values.elementAt(1)),
    );