.. 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_Vector2Array: Vector2Array ============ **Category:** Built-In Types Brief Description ----------------- An Array of Vector2. Member Functions ---------------- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_back` **(** :ref:`Vector2` vector2 **)** | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`resize` **(** :ref:`int` idx **)** | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set` **(** :ref:`int` idx, :ref:`Vector2` vector2 **)** | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`size` **(** **)** | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2Array` | :ref:`Vector2Array` **(** :ref:`Array` from **)** | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ Description ----------- An Array specifically designed to hold Vector2. Member Function Description --------------------------- .. _class_Vector2Array_push_back: - void **push_back** **(** :ref:`Vector2` vector2 **)** Inserts a Vector2 at the end. .. _class_Vector2Array_resize: - void **resize** **(** :ref:`int` idx **)** 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. .. _class_Vector2Array_set: - void **set** **(** :ref:`int` idx, :ref:`Vector2` vector2 **)** Changes the Vector2 at the given index. .. _class_Vector2Array_size: - :ref:`int` **size** **(** **)** Returns the size of the array. .. _class_Vector2Array_Vector2Array: - :ref:`Vector2Array` **Vector2Array** **(** :ref:`Array` from **)** Constructs a new Vector2Array. Optionally, you can pass in an Array that will be converted.