class_vector2array.rst 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_Vector2Array:
  4. Vector2Array
  5. ============
  6. **Category:** Built-In Types
  7. Brief Description
  8. -----------------
  9. An Array of Vector2.
  10. Member Functions
  11. ----------------
  12. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  13. | void | :ref:`push_back<class_Vector2Array_push_back>` **(** :ref:`Vector2<class_vector2>` vector2 **)** |
  14. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`resize<class_Vector2Array_resize>` **(** :ref:`int<class_int>` idx **)** |
  16. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set<class_Vector2Array_set>` **(** :ref:`int<class_int>` idx, :ref:`Vector2<class_vector2>` vector2 **)** |
  18. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`size<class_Vector2Array_size>` **(** **)** |
  20. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Vector2Array<class_vector2array>` | :ref:`Vector2Array<class_Vector2Array_Vector2Array>` **(** :ref:`Array<class_array>` from **)** |
  22. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  23. Description
  24. -----------
  25. An Array specifically designed to hold Vector2.
  26. Member Function Description
  27. ---------------------------
  28. .. _class_Vector2Array_push_back:
  29. - void **push_back** **(** :ref:`Vector2<class_vector2>` vector2 **)**
  30. Inserts a Vector2 at the end.
  31. .. _class_Vector2Array_resize:
  32. - void **resize** **(** :ref:`int<class_int>` idx **)**
  33. Sets the size of the Vector2Array. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array.
  34. .. _class_Vector2Array_set:
  35. - void **set** **(** :ref:`int<class_int>` idx, :ref:`Vector2<class_vector2>` vector2 **)**
  36. Changes the Vector2 at the given index.
  37. .. _class_Vector2Array_size:
  38. - :ref:`int<class_int>` **size** **(** **)**
  39. Returns the size of the array.
  40. .. _class_Vector2Array_Vector2Array:
  41. - :ref:`Vector2Array<class_vector2array>` **Vector2Array** **(** :ref:`Array<class_array>` from **)**
  42. Constructs a new Vector2Array. Optionally, you can pass in an Array that will be converted.