PackedFloat64Array

A packed array of 64-bit floating-point values.

Description

An array specifically designed to hold 64-bit floating-point values (double). Packs data tightly, so it saves memory for large array sizes.

If you only need to pack 32-bit floats tightly, see PackedFloat32Array for a more memory-friendly alternative.

Note

There are notable differences when using this API with C#. See C# API differences to GDScript for more information.

Constructors

PackedFloat64Array

PackedFloat64Array ( )

PackedFloat64Array

PackedFloat64Array ( PackedFloat64Array from )

PackedFloat64Array

PackedFloat64Array ( Array from )

Methods

bool

append ( float value )

void

append_array ( PackedFloat64Array array )

int

bsearch ( float value, bool before=true )

void

clear ( )

int

count ( float value ) const

PackedFloat64Array

duplicate ( )

void

fill ( float value )

int

find ( float value, int from=0 ) const

bool

has ( float value ) const

int

insert ( int at_index, float value )

bool

is_empty ( ) const

bool

push_back ( float value )

void

remove_at ( int index )

int

resize ( int new_size )

void

reverse ( )

int

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

void

set ( int index, float value )

int

size ( ) const

PackedFloat64Array

slice ( int begin, int end=2147483647 ) const

void

sort ( )

PackedByteArray

to_byte_array ( ) const

Operators

bool

operator != ( PackedFloat64Array right )

PackedFloat64Array

operator + ( PackedFloat64Array right )

bool

operator == ( PackedFloat64Array right )

float

operator [] ( int index )


Constructor Descriptions

PackedFloat64Array PackedFloat64Array ( )

Constructs an empty PackedFloat64Array.


PackedFloat64Array PackedFloat64Array ( PackedFloat64Array from )

Constructs a PackedFloat64Array as a copy of the given PackedFloat64Array.


PackedFloat64Array PackedFloat64Array ( Array from )

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


Method Descriptions

bool append ( float value )

Appends an element at the end of the array (alias of