/** * Creates a bounding box given the extent * * @param minx * minimum x coordinate * @param maxx * maximum x coordinate * @param miny * minimum y coordinate * @param maxy * maximum y coordinate */ public BoundingBox(double minx, double maxx, double miny, double maxy, double minz, double maxz) { init(minx, maxx, miny, maxy, minz, maxz); }
/** * Copy constructor * * @param other * the copied bounding box */ public BoundingBox(BoundingBox other) { if (other.isNull()) setToNull(); else init(other.minX, other.maxX, other.minY, other.maxY, other.minZ, other.maxZ); }
/** * Create a bounding box between lowerLeft and upperRight * * @param lowerLeft * lower left point of the box * @param upperRight * upper left point of the box */ public BoundingBox(Point lowerLeft, Point upperRight) { init(lowerLeft.getX(), upperRight.getX(), lowerLeft.getY(), upperRight.getY(), lowerLeft.getZ(), upperRight.getZ()); }