Beispiel #1
0
  /**
   * Determines whether two lon distances overlap
   *
   * @param lonmStart
   * @param lonmEnd
   * @param lonmMin
   * @param lonmMax
   * @return
   */
  public static boolean isLonmOverlaps(int lonmStart, int lonmEnd, int lonmStart2, int lonmEnd2) {
    lonmEnd = Util.makeContinuousFromStartLonm(lonmStart, lonmEnd);
    lonmStart2 = Util.makeContinuousLonm(lonmStart, lonmStart2);
    lonmEnd2 = Util.makeContinuousFromStartLonm(lonmStart2, lonmEnd2);

    return lonmStart2 <= lonmEnd && lonmEnd2 > lonmStart;
  }
Beispiel #2
0
 public static boolean isLonmOverlapsPoint(int lonmStart, int lonmEnd, int lonm) {
   return makeContinuousFromStartLonm(lonmStart, lonmEnd)
       > Util.makeContinuousFromStartLonm(lonmStart, lonm);
 }
Beispiel #3
0
 public static int subtractLonm(int maxLonm, int minLonm) {
   return Util.makeContinuousFromStartLonm(minLonm, maxLonm) - minLonm;
 }