Bounds<T extends Point<num>>.make constructor

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

Create Bounds from values with two points (both a list of nums).

Implementation

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