BoundingBox constructor

BoundingBox([
  1. Vector3? min,
  2. Vector3? max
])

min - (optional) Vector3 representing the lower (x, y, z) boundary of the box. Default is ( + Infinity, + Infinity, + Infinity ).

max - (optional) Vector3 representing the upper (x, y, z) boundary of the box. Default is ( - Infinity, - Infinity, - Infinity ).

Implementation

BoundingBox([Vector3? min, Vector3? max]) {
  this.min = min ?? Vector3(double.infinity, double.infinity, double.infinity);
  this.max = max ?? Vector3(-double.infinity, -double.infinity, -double.infinity);
}