src/main/java/Kata.java
/**
     * Add the point and ensure the box contains it.
     *
     * @param p the point to add
     * @param x its x coordinate
     * @param y its y coordinate
     */
Add the point and ensure the box contains it.
@param p the point to add
@param x its x coordinate
@param y its y coordinate
Add the point and ensure the box contains it . @param p the point to add @param x its x coordinate @param y its y coordinate
public void addPoint(Point p, double x, double y){
        points.add(p);
        if (x > boxLx)
            boxLx = x;
        if (x < boxSx)
            boxSx = x;
        if (y > boxLy)
            boxLy = y;
        if (y < boxSy)
            boxSy = y;
    }
public void addPoint ( Point p , double x , double y ) { points . add ( p ) ; if ( x > boxLx ) boxLx = x ; if ( x < boxSx ) boxSx = x ; if ( y > boxLy ) boxLy = y ; if ( y < boxSy ) boxSy = y ; }
Add the point and ensure the box contains it.
Add the point and ensure the box contains it .
// expand the box if necessary