Skip to content

Intermact API Reference / @intermact/core / computeBounds

Function: computeBounds()

computeBounds(contours): Bounds2D

Defined in: packages/core/src/geometry/bounds.ts:6

Compute the axis-aligned bounding box of one or more contours.

Parameters

contours

readonly RawContour[]

Returns

Bounds2D

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)