Example #1
0
 inline int getOverlapY(const AABB& mA, const AABB& mB) noexcept
 {
     return mA.getTop() < mB.getTop() ? mA.getBottom() - mB.getTop()
                                      : mB.getBottom() - mA.getTop();
 }
Example #2
0
 inline int getMinIntersectionY(const AABB& mA, const AABB& mB) noexcept
 {
     return getMinAbs(
         mB.getTop() - mA.getBottom(), mB.getBottom() - mA.getTop());
 }