docs: public static double perimeter(SpatialComparable box) {
      final int dim = box.getDimensionality();
      double perimeter = 0.;
      for(int i = 0; i < dim; i++) {
        perimeter += box.getMax(i) - box.getMin(i);
      }
      return perimeter;
    }