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
| Parameter | Type |
|---|---|
data | Pick<RectData, "x0" | "y0" | "x1" | "y1" | "z"> |
count | number |
out? | { rect: Float32Array; z: Float32Array; } |
out.rect? | Float32Array |
out.z? | Float32Array |