equals method

bool equals(
  1. Box2 box
)

Implementation

bool equals(Box2 box) {
  return box.min.equals(min) && box.max.equals(max);
}