getValues static method

Iterable<double> getValues(
  1. Box box, {
  2. required Coords type,
})

Coordinate values of this bounding box as an iterable of 4, 6 or 8 items according to type.

Implementation

static Iterable<double> getValues(Box box, {required Coords type}) sync* {
  yield box.minX;
  yield box.minY;
  if (type.is3D) {
    yield box.minZ ?? 0.0;
  }
  if (type.isMeasured) {
    yield box.minM ?? 0.0;
  }
  yield box.maxX;
  yield box.maxY;
  if (type.is3D) {
    yield box.maxZ ?? 0.0;
  }
  if (type.isMeasured) {
    yield box.maxM ?? 0.0;
  }
}