bbox.union
The smallest box containing both boxes.
Usage
BBox.union(a: BBox, b: BBox): BBoxParameters
aBBoxFirst box. Required. In model.
bBBoxSecond box. Required. In model.
Returns
The enclosing box; the other argument itself when one is empty, and BBox.empty when both are.
Example
BBox.union(BBox.ofPoints([Point3.origin]), BBox.ofPoints([Point3.of(1, 1, 1)])) // → { min: { x: 0, y: 0, z: 0 }, max: { x: 1, y: 1, z: 1 } }