Java Number Range Check inRange(Integer x1, Integer y1, Integer x2, Integer y2)

Here you can find the source of inRange(Integer x1, Integer y1, Integer x2, Integer y2)

Description

in Range

License

Open Source License

Declaration

public static Boolean inRange(Integer x1, Integer y1, Integer x2, Integer y2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Boolean inRange(Integer x1, Integer y1, Integer x2, Integer y2) {
        if (Math.abs(x1 - x2) > 60 || (Math.abs(y1 - y2)) > 60) {
            return false;
        } else {//from www . j  ava  2s .  co  m
            return true;
        }
    }
}

Related

  1. inRange(int value, int min, int max)
  2. inRange(int value, int min, int max)
  3. inRange(int value, int min, int max)
  4. inRange(int value, int min, int max)
  5. inRange(int x, int a, int b)
  6. inRange(long value, long lowerBound, long upperBound)
  7. inrange2(double value, double min, double max)
  8. rangeCheck(double value)
  9. rangeCheck(final C start, final C end, final C step)