Skip to content

Function: packRects() ​

ts
function packRects(data, count?, out?): PackedRects;

Experimental

Pack rect corners relative to a float64 origin (the center of the finite bounding box of both corners), so float32 deltas stay precise for large coordinates such as ms timestamps.

Parameters ​

ParameterType
dataPick<RectData, "x0" | "y0" | "x1" | "y1" | "z">
countnumber
out?{ rect: Float32Array; z: Float32Array; }
out.rect?Float32Array
out.z?Float32Array

Returns ​

PackedRects

Released under the MIT License.