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 geometry3d/GrowableFloat64Array.ts Line 154 Last Updated: 12 June, 2024