polygon2.boundingBox
The ring’s bounds, as a box in the z = 0 plane.
Usage
polygon.boundingBox(): BBoxReturns
A BBox with min.z = max.z = 0.
Example
Polygon2.rectangle(2, 2).value.boundingBox() // → { min: { x: -1, y: -1, z: 0 }, max: { x: 1, y: 1, z: 0 } }