template<class T1, class T2> bool isIntersecting(T1& mA, T2& mB) { return mA.right() >= mB.left() && mA.left() <= mB.right() && mA.bottom() >= mB.top() && mA.top() <= mB.bottom(); }
static bool isIntersecting(const T1& mA, const T2& mB) noexcept { return mA.right() >= mB.left() && mA.left() <= mB.right() && mA.bottom() >= mB.top() && mA.top() <= mB.bottom(); }
bool isIntersecting(T1& mA, T2& mB) { return mA.right() >= mB.left() && mA.left() <= mB.right() && mA.bottom() >= mB.top() && mA.top() <= mB.bottom(); }
bool isIntersecting(const T1& mA, const T2& mB) noexcept { // {Info: AABB vs AABB collision} return mA.right() >= mB.left() && mA.left() <= mB.right() && mA.bottom() >= mB.top() && mA.top() <= mB.bottom(); }