intersectsWithAabb3 method

bool intersectsWithAabb3 (Aabb3 aabb)

Check if this intersects with aabb.

Implementation

bool intersectsWithAabb3(Aabb3 aabb) {
  if (_intersectsWithAabb3CheckPlane(aabb, _plane0)) {
    return false;
  }

  if (_intersectsWithAabb3CheckPlane(aabb, _plane1)) {
    return false;
  }

  if (_intersectsWithAabb3CheckPlane(aabb, _plane2)) {
    return false;
  }

  if (_intersectsWithAabb3CheckPlane(aabb, _plane3)) {
    return false;
  }

  if (_intersectsWithAabb3CheckPlane(aabb, _plane4)) {
    return false;
  }

  if (_intersectsWithAabb3CheckPlane(aabb, _plane5)) {
    return false;
  }

  return true;
}