code: public static int getDirection (Point a, Point b)
      {
          return getDirection(a.getX(), a.getY(), b.getX(), b.getY());
      }
docs: Returns which of the eight compass directions that point <code>b</code> lies in from point
  <code>a</code> as one of the {@link DirectionCodes} direction constants. <em>Note:</em>
  that the coordinates supplied are assumed to be logical (screen) rather than cartesian
  coordinates and <code>NORTH</code> is considered to point toward the top of the screen.