mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 21:29:07 +00:00
70 lines
2.9 KiB
ReStructuredText
70 lines
2.9 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
|
|
|
|
.. _class_RealArray:
|
|
|
|
RealArray
|
|
=========
|
|
|
|
**Category:** Built-In Types
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Real Array .
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------------------+----------------------------------------------------------------------------------------------------------+
|
|
| :ref:`RealArray<class_realarray>` | :ref:`RealArray<class_RealArray_RealArray>` **(** :ref:`Array<class_array>` from **)** |
|
|
+------------------------------------+----------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`push_back<class_RealArray_push_back>` **(** :ref:`float<class_float>` value **)** |
|
|
+------------------------------------+----------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`resize<class_RealArray_resize>` **(** :ref:`int<class_int>` idx **)** |
|
|
+------------------------------------+----------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set<class_RealArray_set>` **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` value **)** |
|
|
+------------------------------------+----------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`size<class_RealArray_size>` **(** **)** |
|
|
+------------------------------------+----------------------------------------------------------------------------------------------------------+
|
|
|
|
Description
|
|
-----------
|
|
|
|
Real Array. Array of floating point values. Can only contain floats. Optimized for memory usage, can't fragment the memory.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_RealArray_RealArray:
|
|
|
|
- :ref:`RealArray<class_realarray>` **RealArray** **(** :ref:`Array<class_array>` from **)**
|
|
|
|
Create from a generic array.
|
|
|
|
.. _class_RealArray_push_back:
|
|
|
|
- void **push_back** **(** :ref:`float<class_float>` value **)**
|
|
|
|
Append an element at the end of the array.
|
|
|
|
.. _class_RealArray_resize:
|
|
|
|
- void **resize** **(** :ref:`int<class_int>` idx **)**
|
|
|
|
Set the size of the :ref:`RealArray<class_realarray>`. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array.
|
|
|
|
.. _class_RealArray_set:
|
|
|
|
- void **set** **(** :ref:`int<class_int>` idx, :ref:`float<class_float>` value **)**
|
|
|
|
Change the float at the given index.
|
|
|
|
.. _class_RealArray_size:
|
|
|
|
- :ref:`int<class_int>` **size** **(** **)**
|
|
|
|
Return the size of the array.
|
|
|
|
|