intersectsAabb method

bool intersectsAabb(
  1. Aabb other
)

Implementation

bool intersectsAabb(Aabb other) {
  return min.x <= other.max.x &&
      max.x >= other.min.x &&
      min.y <= other.max.y &&
      max.y >= other.min.y &&
      min.z <= other.max.z &&
      max.z >= other.min.z;
}