constructor Method
Construct a new growable array.
GrowableXYArray(numPoints?: number, growthFactor?: number, data?: Float64Array): GrowableXYArray
| Parameter | Type | Description |
|---|---|---|
| numPoints | number | initial capacity in xy tuples. Default value is 8. |
| growthFactor | number | used by ensureCapacity to expand requested reallocation size. Default value is 1.5. For no expansion, use 1. |
| data | Float64Array | optional array to serve as the point source. If data is supplied, numPoints is reinterpreted asthe initial point count, defaulting to and bounded above by the array's point capacity. If a subsequent push would exceed the array's capacity, a new Float64Array of the same buffer type is allocated and filled. |
Returns - GrowableXYArray
Defined in
- geometry3d/GrowableXYArray.ts Line 43
Last Updated: 18 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.