bbox.diagonal
The length of the box’s diagonal, the kernel’s measure of model size.
Usage
BBox.diagonal(b: BBox): numberParameters
bBBoxThe box to measure. Required. In model.
Returns
The distance from min to max in model units; 0 for an empty box or a single point.
Example
BBox.diagonal(BBox.ofPoints([Point3.origin, Point3.of(3, 4, 0)])) // → 5