constructor Method

Construct a new GrowablePoint2d array.

GrowableXYArray(numPoints: number = 8, growthFactor?: number, data?: Float64Array): GrowableXYArray

Parameter Type Description
numPoints number initial capacity in xy tuples (default 8).
growthFactor number used by ensureCapacity to expand requested reallocation size (default 1.5).
data Float64Array optional pre-existing Float64Array to use as the backing memory. If supplied, numPoints is ignored.

Returns - GrowableXYArray

Defined in

Last Updated: 15 November, 2025