code: public void setDimension(double min, double max) {
          this.minx = min;
          this.maxx = max;
          this.miny = min;
          this.maxy = max;
          this.minz = min;
          this.maxz = max;
      }
docs: Method sets the maximal 3d dimensions to given min and max values.