PackedVector2Array¶
A packed array of Vector2s.
Description¶
An array specifically designed to hold Vector2. Packs data tightly, so it saves memory for large array sizes.
Note
There are notable differences when using this API with C#. See C# API differences to GDScript for more information.
Tutorials¶
Constructors¶
PackedVector2Array ( PackedVector2Array from ) |
|
PackedVector2Array ( Array from ) |
Methods¶
void |
append_array ( PackedVector2Array array ) |
void |
clear ( ) |
duplicate ( ) |
|
void |
|
is_empty ( ) const |
|
void |
|
void |
reverse ( ) |
void |
|
size ( ) const |
|
void |
sort ( ) |
to_byte_array ( ) const |
Operators¶
operator != ( PackedVector2Array right ) |
|
operator * ( Transform2D right ) |
|
operator + ( PackedVector2Array right ) |
|
operator == ( PackedVector2Array right ) |
|
operator [] ( int index ) |
Constructor Descriptions¶
PackedVector2Array PackedVector2Array ( )
Constructs an empty PackedVector2Array.
PackedVector2Array PackedVector2Array ( PackedVector2Array from )
Constructs a PackedVector2Array as a copy of the given PackedVector2Array.
PackedVector2Array PackedVector2Array ( Array from )
Constructs a new PackedVector2Array. Optionally, you can pass in a generic