factory BBox.fromMinMax(List<double> mins, List<double> maxs) { assert(mins.length == maxs.length); return BBox(mins.length, [...mins, ...maxs]); }