Skip to content

editor / boundingBox

Function: boundingBox() ​

boundingBox(points): BoundingBox

Defined in: geometry/bounding-box.ts:26

Bounding box of a set of points: the smallest and largest coordinates on each axis (DERIV-regular-polygon-fit step 3).

An empty set has no box: its minima are +∞ and its maxima −∞.

Parameters ​

points ​

readonly Point[]

points, in any order

Returns ​

BoundingBox

the extreme coordinates

Kind ​

geometry

See ​

DERIV-regular-polygon-fit