private static boolean visitedEnoughSides(boolean allowEdges, int sides) {
      if (allowEdges) {
        return ((sides & LEFT) > 0 && (sides & RIGHT) > 0) || ((sides & TOP) > 0 && (sides & BOTTOM) > 0);
      } else {
        return sides == ALL;
      }
    }
Returns {@code false} if the segment from a point in {@code side1} to {@code side2} is definitely outside of the
rectangle, or true if it might cross the inside where {@code side1} and {@code side2} are from
{@link #getSide(int, int, int, int)}.
planetiler-core/src/main/java/com/onthegomap/planetiler/VectorTile.java