BoundingBox constructor
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);
}