containsAabb3 method

bool containsAabb3(
  1. Aabb3 other
)

Return if this contains other.

Implementation

bool containsAabb3(Aabb3 other) {
  final otherMax = other._max;
  final otherMin = other._min;

  return (_min.x < otherMin.x) &&
      (_min.y < otherMin.y) &&
      (_min.z < otherMin.z) &&
      (_max.x > otherMax.x) &&
      (_max.y > otherMax.y) &&
      (_max.z > otherMax.z);
}