intersectsWithAabb3 method

bool intersectsWithAabb3(
  1. Aabb3 other
)

Return if this intersects with other.

Implementation

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

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