docs: public void setClipping(double[] min, double[] max) {
      // if only one dimension was given, expand to all dimensions.
      if(min.length == 1 && max.length == 1) {
        if(min[0] >= max[0]) {
          throw new AbortException("Clipping range empty.");
        }
        clipmin = new double[dim];
        clipmax = new double[dim];
        Arrays.fill(clipmin, min[0]);
        Arrays.fill(clipmax, max[0]);
        return;
      }
      if(dim != min.length) {
        throw new AbortException("Clipping double[] dimensionalities do not match: " + dim + " vs. " + min.length);
      }
      if(dim != max.length) {
        throw new AbortException("Clipping double[] dimensionalities do not match: " + dim + " vs. " + max.length);
      }
      for(int i = 0; i < dim; i++) {
        if(min[i] >= max[i]) {
          throw new AbortException("Clipping range empty in dimension " + (i + 1));
        }
      }
      clipmin = min;
      clipmax = max;
    }