class Bounds {

    public void expandBounds(double x0, double y0) {
        // Make sure it is finite, but NaN will be handled by Range
        if (!Double.isInfinite(x0)) {
            x.expand(x0);
        }
        if (!Double.isInfinite(y0)) {
            y.expand(y0);
        }
    }

}