/** * Sets the maximum position the the location generator will generate. * @param max The maximum position. * @return This, as per the builder pattern. */ public Builder max(Point max) { return xMax(max.x).yMax(max.y); }
/** * Sets the maximum x and y values the location generator will generate. * @param max The maximum x and y values. * @return This, as per the builder pattern. */ public Builder max(double max) { return xMax(max).yMax(max); }
/** * Sets the borders of the location generator such that the min position is * <code>(0,0)</code> and the max position is <code>(side,side)</code>. * @param side The side of a square. * @return This, as per the builder pattern. */ public Builder square(double side) { return xMin(0d).yMin(0d).xMax(side).yMax(side); }