public boolean intersectsWith(BoundingBox paramBoundingBox) { BoundingBox localBoundingBox = getBoundingBox(0); if (!localBoundingBox.intersectDestructively(paramBoundingBox)) {} for (; ; ) { return false; for (double d1 = localBoundingBox.getLeft(); d1 < localBoundingBox.getRight(); d1 += 1.0D) { for (double d2 = localBoundingBox.getTop(); d2 < localBoundingBox.getBottom(); d2 += 1.0D) { if (containsPoint(d1, d2)) { return true; } } } } }
public static boolean colliding(Sprite paramSprite1, Sprite paramSprite2) { BoundingBox localBoundingBox = paramSprite1.getBoundingBox(1); if (!localBoundingBox.intersectDestructively(paramSprite2.getBoundingBox(1))) {} for (; ; ) { return false; for (double d1 = localBoundingBox.getLeft(); d1 <= localBoundingBox.getRight(); d1 += 1.0D) { for (double d2 = localBoundingBox.getTop(); d2 <= localBoundingBox.getBottom(); d2 += 1.0D) { if ((paramSprite1.containsPoint(d1, d2)) && (paramSprite2.containsPoint(d1, d2))) { return true; } } } } }