AABB constructor

AABB([
  1. double minX = 0,
  2. double maxX = 0,
  3. double minY = 0,
  4. double maxY = 0,
  5. double minZ = 0,
  6. double maxZ = 0,
])

An axis-aligned bounding box.

minX the min x position

maxX the max x position

minY the min y position

maxY the max y position

minZ the min z position

maxZ the max z position

Implementation

AABB([double minX = 0,double maxX = 0,double minY = 0,double maxY = 0,double minZ = 0,double maxZ = 0]){
  elements[0] = minX; elements[1] = minY; elements[2] = minZ;
  elements[3] = maxX; elements[4] = maxY; elements[5] = maxZ;
}