Box

Box Space

struct Box {
long[] shape;
double[] high;
double[] low;
}

Examples

1     static assert(isSpace!Box);
2 
3     auto s = `{
4    "name": "Box",
5    "shape": [2],
6    "high": [1.0, 2.0],
7    "low": [0.0, 0.0]
8 }`;
9     auto j = s.parseJSON;
10     assert(Box.from(j) == Box([2], [1.0, 2.0], [0.0, 0.0]));

Meta