containsAabb3 method

bool containsAabb3 (Aabb3 other)

Return if this contains other.

Implementation

bool containsAabb3(Aabb3 other) {
  final Vector3 otherMax = other._max;
  final Vector3 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);
}