Box2 constructor

Box2(
  1. Vector2? min,
  2. Vector2? max
)

Implementation

Box2(Vector2? min, Vector2? max) {
  this.min = (min != null) ? min : Vector2(Infinity, Infinity);
  this.max = (max != null) ? max : Vector2(-Infinity, -Infinity);
}