:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the PackedFloat64Array.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_PackedFloat64Array: PackedFloat64Array ================== A packed :ref:`Array` of 64-bit floating-point values. Description ----------- An :ref:`Array` specifically designed to hold 64-bit floating-point values. Packs data tightly, so it saves memory for large array sizes. **Note:** This type is passed by value and not by reference. If you only need to pack 32-bit floats tightly, see :ref:`PackedFloat32Array` for a more memory-friendly alternative. Methods ------- +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedFloat64Array` | :ref:`PackedFloat64Array` **(** :ref:`Array` from **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`append` **(** :ref:`float` value **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`append_array` **(** :ref:`PackedFloat64Array` array **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`empty` **(** **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`insert` **(** :ref:`int` idx, :ref:`float` value **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`invert` **(** **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_back` **(** :ref:`float` value **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove` **(** :ref:`int` idx **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`resize` **(** :ref:`int` idx **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set` **(** :ref:`int` idx, :ref:`float` value **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`size` **(** **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ Method Descriptions ------------------- .. _class_PackedFloat64Array_method_PackedFloat64Array: - :ref:`PackedFloat64Array` **PackedFloat64Array** **(** :ref:`Array` from **)** Constructs a new ``PackedFloat64Array``. Optionally, you can pass in a generic :ref:`Array` that will be converted. ---- .. _class_PackedFloat64Array_method_append: - void **append** **(** :ref:`float` value **)** Appends an element at the end of the array (alias of :ref:`push_back`). ---- .. _class_PackedFloat64Array_method_append_array: - void **append_array** **(** :ref:`PackedFloat64Array` array **)** Appends a ``PackedFloat64Array`` at the end of this array. ---- .. _class_PackedFloat64Array_method_empty: - :ref:`bool` **empty** **(** **)** Returns ``true`` if the array is empty. ---- .. _class_PackedFloat64Array_method_insert: - :ref:`int` **insert** **(** :ref:`int` idx, :ref:`float` value **)** Inserts a new element at a given position in the array. The position must be valid, or at the end of the array (``idx == size()``). ---- .. _class_PackedFloat64Array_method_invert: - void **invert** **(** **)** Reverses the order of the elements in the array. ---- .. _class_PackedFloat64Array_method_push_back: - void **push_back** **(** :ref:`float` value **)** Appends an element at the end of the array. ---- .. _class_PackedFloat64Array_method_remove: - void **remove** **(** :ref:`int` idx **)** Removes an element from the array by index. ---- .. _class_PackedFloat64Array_method_resize: - void **resize** **(** :ref:`int` idx **)** Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. ---- .. _class_PackedFloat64Array_method_set: - void **set** **(** :ref:`int` idx, :ref:`float` value **)** Changes the float at the given index. ---- .. _class_PackedFloat64Array_method_size: - :ref:`int` **size** **(** **)** Returns the size of the array.