code: public double distanceFromCenter(final float x, final float y) {
          return Math.sqrt(Math.pow(x - this.x, 2) + Math.pow(y - this.y, 2));
      }
docs: Get the distance from the given point to the center of this object.
  
  @param x X coordinate.
  @param y Y coordinate.
  @return Distance from the given point to the center of this object.