/** * 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(Point3D lowerLeft, Point3D upperRight) { init( lowerLeft.getX(), upperRight.getX(), lowerLeft.getY(), upperRight.getY(), lowerLeft.getZ(), upperRight.getZ()); }
/** * 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); }