AABB constructor

AABB({
  1. Vector3? upperBound,
  2. Vector3? lowerBound,
})

Axis aligned bounding box class.

upperBound The max location of the boundry

lowerBound The min location of the boundry

Implementation

AABB({Vector3? upperBound,Vector3? lowerBound}) {
  if(lowerBound != null){
    this.lowerBound.setFrom(lowerBound);
  }
  if(upperBound != null){
    this.upperBound.setFrom(upperBound);
  }
}