.. 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 ---------------- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2Array` | :ref:`Vector2Array` **(** :ref:`Array` from **)** | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | 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` **(** **)** | +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ Description ----------- An Array specifically designed to hold Vector2. Member Function Description --------------------------- .. _class_Vector2Array_Vector2Array: - :ref:`Vector2Array` **Vector2Array** **(** :ref:`Array` from **)** Construct a new :ref:`Vector2Array`. Optionally, you can pass in an Array that will be converted. .. _class_Vector2Array_push_back: - void **push_back** **(** :ref:`Vector2` vector2 **)** Insert a :ref:`Vector2` at the end. .. _class_Vector2Array_resize: - void **resize** **(** :ref:`int` idx **)** Set 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 **)** Change the :ref:`Vector2` at the given index. .. _class_Vector2Array_size: - :ref:`int` **size** **(** **)** Return the size of the array.