PackedVector3Array

A packed array of Vector3s.

Description

An array specifically designed to hold Vector3. 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.

Constructors

PackedVector3Array

PackedVector3Array ( )

PackedVector3Array

PackedVector3Array ( PackedVector3Array from )

PackedVector3Array

PackedVector3Array ( Array from )

Methods

bool

append ( Vector3 value )

void

append_array ( PackedVector3Array array )

int

bsearch ( Vector3 value, bool before=true )

void

clear ( )

int

count ( Vector3 value ) const

PackedVector3Array

duplicate ( )

void

fill ( Vector3 value )

int

find ( Vector3 value, int from=0 ) const

bool

has ( Vector3 value ) const

int

insert ( int at_index, Vector3 value )

bool

is_empty ( ) const

bool

push_back ( Vector3 value )

void

remove_at ( int index )

int

resize ( int new_size )

void

reverse ( )

int

rfind ( Vector3 value, int from=-1 ) const

void

set ( int index, Vector3 value )

int

size ( ) const

PackedVector3Array

slice ( int begin, int end=2147483647 ) const

void

sort ( )

PackedByteArray

to_byte_array ( ) const

Operators

bool

operator != ( PackedVector3Array right )

PackedVector3Array

operator * ( Transform3D right )

PackedVector3Array

operator + ( PackedVector3Array right )

bool

operator == ( PackedVector3Array right )

Vector3

operator [] ( int index )


Constructor Descriptions

PackedVector3Array PackedVector3Array ( )

Constructs an empty PackedVector3Array.


PackedVector3Array PackedVector3Array ( PackedVector3Array from )

Constructs a PackedVector3Array as a copy of the given PackedVector3Array.


PackedVector3Array PackedVector3Array ( Array from )

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

Note: When initializing a PackedVector3Array with elements, it must be initialized with an Array