intersectsBox method
box
- Box to check for intersection against.
Determines whether or not this box intersects box
.
Implementation
bool intersectsBox(BoundingBox box) {
// using 6 splitting planes to rule out intersections.
return box.max.x < min.x ||
box.min.x > max.x ||
box.max.y < min.y ||
box.min.y > max.y ||
box.max.z < min.z ||
box.min.z > max.z?false:true;
}