Example #1
0
 inline int getOverlapX(const AABB& mA, const AABB& mB) noexcept
 {
     return mA.getLeft() < mB.getLeft() ? mA.getRight() - mB.getLeft()
                                        : mB.getRight() - mA.getLeft();
 }
Example #2
0
 inline int getMinIntersectionX(const AABB& mA, const AABB& mB) noexcept
 {
     return getMinAbs(
         mB.getLeft() - mA.getRight(), mB.getRight() - mA.getLeft());
 }