Пример #1
0
 public static final boolean intersects(
     final int pXMinA,
     final int pYMinA,
     final int pXMaxA,
     final int pYMaxA,
     final int pXMinB,
     final int pYMinB,
     final int pXMaxB,
     final int pYMaxB) {
   return ((pXMinA < pXMaxB) && (pXMinB < pXMaxA) && (pYMinA < pYMaxB) && (pYMinB < pYMaxA))
       || IntBoundsUtils.contains(pXMinA, pYMinA, pXMaxA, pYMaxA, pXMinB, pYMinB, pXMaxB, pYMaxB)
       || IntBoundsUtils.contains(pXMinB, pYMinB, pXMaxB, pYMaxB, pXMinA, pYMinA, pXMaxA, pYMaxA);
 }
Пример #2
0
 public static final boolean contains(final IIntBounds pIntBounds, final int pX, final int pY) {
   return IntBoundsUtils.contains(
       pIntBounds.getXMin(),
       pIntBounds.getYMin(),
       pIntBounds.getXMax(),
       pIntBounds.getYMax(),
       pX,
       pY);
 }
Пример #3
0
 public static final boolean contains(final IIntBounds pIntBoundsA, final IIntBounds pIntBoundsB) {
   return IntBoundsUtils.contains(
       pIntBoundsA.getXMin(),
       pIntBoundsA.getYMin(),
       pIntBoundsA.getXMax(),
       pIntBoundsA.getYMax(),
       pIntBoundsB.getXMin(),
       pIntBoundsB.getYMin(),
       pIntBoundsB.getXMax(),
       pIntBoundsB.getYMax());
 }
Пример #4
0
 public static final boolean adjacent(final IIntBounds pIntBoundsA, final IIntBounds pIntBoundsB) {
   return IntBoundsUtils.adjacent(
       pIntBoundsA.getXMin(),
       pIntBoundsA.getYMin(),
       pIntBoundsA.getXMax(),
       pIntBoundsA.getYMax(),
       pIntBoundsB.getXMin(),
       pIntBoundsB.getYMin(),
       pIntBoundsB.getXMax(),
       pIntBoundsB.getYMax());
 }
Пример #5
0
 public static final boolean intersects(
     final IIntBounds pIntBoundsA, final IIntBounds pIntBoundsB) {
   return IntBoundsUtils.intersects(
       pIntBoundsA.getXMin(),
       pIntBoundsA.getYMin(),
       pIntBoundsA.getXMax(),
       pIntBoundsA.getYMax(),
       pIntBoundsB.getXMin(),
       pIntBoundsB.getYMin(),
       pIntBoundsB.getXMax(),
       pIntBoundsB.getYMax());
 }