PoolVector2Array

    An specifically designed to hold Vector2. Optimized for memory usage, does not fragment the memory.

    Note: This type is passed by value and not by reference.

    • PoolVector2Array ( Array from )

    Constructs a new . Optionally, you can pass in a generic that will be converted.



    • void append_array ( array )

    Appends a at the end of this array.


    Returns if the array is empty.


    Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ().


    • void invert ( )

    • void push_back ( vector2 )

    Inserts a Vector2 at the end.


    • void remove ( idx )

    Removes an element from the array by index.


    • void resize ( 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.



    • size ( )

    Returns the size of the array.