Skip to content

Documentation / @ripl/core / getContainingBox

Function: getContainingBox()

getContainingBox<TValue>(value, identity): Box

Defined in: packages/core/src/math/geometry.ts:95

Computes the smallest axis-aligned bounding box that contains all boxes extracted from the array.

Type Parameters

Type Parameter
TValue

Parameters

ParameterType
valueTValue[]
identity(value) => Box

Returns

Box