AABB constructor
AABB({
- Vector3? upperBound,
- 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);
}
}