/** * Create an empty Bounds object with coordinates set to null */ public Bounds() { this(BoundsImpl.create()); }
/** * Create a bounding box by specifying its lower left coordinates, and its * upper right coordinates. * * The units of the bounding box will depend on the CRS and or projection * used. * * For example, a bounds object that represents the world-wide bounds in * EPSG:4392 is specified as: new Bounds(-180,-90,180,90); * * @param lowerLeftX = west = minx * @param lowerLeftY = south = miny * @param upperRightX = east = maxx * @param upperRightY = north = maxy */ public Bounds(double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY) { this(BoundsImpl.create(lowerLeftX, lowerLeftY, upperRightX, upperRightY)); }
/** * Create a bounding box by specifying its lower left coordinates, * and its upper right coordinates. * * The units of the bounding box will depend on the CRS and or projection used. * * For example, a bounds object that represents the world-wide bounds * in EPSG:4392 is specified as: * new Bounds(-180,-90,180,90); * * @param lowerLeftX = west = minx * @param lowerLeftY = south = miny * @param upperRightX = east = maxx * @param upperRightY = north = maxy */ public Bounds(double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY) { this (BoundsImpl.create(lowerLeftX, lowerLeftY, upperRightX, upperRightY)); }