PoolVector3Array

A pooled Array of Vector3.

Descripción

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

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

Métodos

PoolVector3Array

PoolVector3Array ( Array from )

void

append ( Vector3 vector3 )

void

append_array ( PoolVector3Array array )

bool

empty ( )

int

insert ( int idx, Vector3 vector3 )

void

invert ( )

void

push_back ( Vector3 vector3 )

void

remove ( int idx )

void

resize ( int idx )

void

set ( int idx, Vector3 vector3 )

int

size ( )

Descripciones de Métodos

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


Concatena un elemento al final del array (alias de push_back).


Appends a PoolVector3Array at the end of this array.


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 ( Vector3 vector3 )

Inserta un Vector3 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 Vector3 en el índice dado.


Devuelve el tamaño del array.