PoolVector2Array¶
Descripción¶
An Array 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.
Tutoriales¶
Métodos¶
PoolVector2Array ( Array from ) |
|
void |
|
void |
append_array ( PoolVector2Array array ) |
empty ( ) |
|
void |
invert ( ) |
void |
|
void |
|
void |
|
void |
|
size ( ) |
Descripciones de Métodos¶
PoolVector2Array PoolVector2Array ( Array from )
Constructs a new PoolVector2Array
. Optionally, you can pass in a generic Array that will be converted.
void append ( Vector2 vector2 )
Concatena un elemento al final del array (alias de push_back).
void append_array ( PoolVector2Array array )
Appends a PoolVector2Array
at the end of this array.
bool empty ( )
Devuelve true
si el array es vacio.
Inserta un nuevo elemento en una posición determinada del array. La posición debe ser válida, o al final del array (idx == size()
).
void invert ( )
Invierte el orden de los elementos en el array.
void push_back ( Vector2 vector2 )
Inserta un Vector2 al final.
void remove ( int idx )
Elimina un elemento del array por indice.
void resize ( int idx )
Establece el tamaño del conjunto. Si el array crece, reserva elementos al final del array. Si el array se reduce, trunca el array al nuevo tamaño.
Cambia el Vector2 en el índice dado.
int size ( )
Devuelve el tamaño del array.