testOverlap static method
Implementation
static bool testOverlap(AABB a, AABB b) {
if (b.lowerBound.x - a.upperBound.x > 0.0 ||
b.lowerBound.y - a.upperBound.y > 0.0) {
return false;
}
if (a.lowerBound.x - b.upperBound.x > 0.0 ||
a.lowerBound.y - b.upperBound.y > 0.0) {
return false;
}
return true;
}