code: public static double distanceFromCenter(Point center, double x, double y)
      {
          return Math.hypot(x-center.getX(), y-center.getY());
      }
docs: Returns point (x, y) distance from circles center.
  @param center
  @param x
  @param y
  @return