Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

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(from: PackedFloat64Array)

PackedFloat64Array

PackedFloat64Array(from: Array)

Methods

bool

append(value: float)

void

append_array(array: PackedFloat64Array)

int

bsearch(value: float, before: bool = true)

void

clear()

int

count(value: float) const

PackedFloat64Array

duplicate()

void

fill(value: float)

int

find(value: float, from: int = 0) const

bool

has(value: float) const

int

insert(at_index: int, value: float)

bool

is_empty() const

bool

push_back(value: float)

void

remove_at(index: int)

int

resize(new_size: int)

void

reverse()

int

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

void

set(index: int, value: float)

int

size() const

PackedFloat64Array

slice(begin: int, end: int = 2147483647) const

void

sort()

PackedByteArray

to_byte_array() const

Operators

bool

operator !=(right: PackedFloat64Array)

PackedFloat64Array

operator +(right: PackedFloat64Array)

bool

operator ==(right: PackedFloat64Array)

float

operator [](index: int)


Constructor Descriptions

PackedFloat64Array PackedFloat64Array()

Constructs an empty PackedFloat64Array.


PackedFloat64Array PackedFloat64Array(from: PackedFloat64Array)

Constructs a PackedFloat64Array as a copy of the given PackedFloat64Array.


PackedFloat64Array PackedFloat64Array(from: Array)

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