API Reference > geometry-core > ArraysAndInterfaces > GrowableFloat64Array > ensureCapacity ensureCapacity Method If the capacity (Float64Array length) is less than or equal to the requested newCapacity, do nothing If the requested newCapacity is larger than the existing capacity, reallocate (and copy existing values) with the larger capacity. ensureCapacity(newCapacity: number): void Parameter Type Description newCapacity number Returns - void Defined in core/geometry/src/geometry3d/GrowableFloat64Array.ts Line 147 Last Updated: 13 June, 2024