class Godot::PackedFloat64Array

Included Modules

Defined in:

libgodot/collections.cr:693
libgodot/collections.cr:756
libgodot/variant.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

def self.from(items : Array(Float64)) : PackedFloat64Array #

def self.from_bridge_payload(payload_ptr : Pointer(Void)) : PackedFloat64Array #

def self.from_raw(data_ptr : Pointer(Void), count : Int64) : PackedFloat64Array #

def self.new(size : Int, initial_value : Float64 = 0.0) #

def self.new(initial_items : Array(Float64)) #

def self.new #

Instance Method Detail

def <<(value : Float64) : self #

def ==(other : PackedFloat64Array) : Bool #

def [](index : Int) : Float64 #

def []=(index : Int, value : Float64) : Float64 #

def []?(index : Int) : Float64 | Nil #

def append(value : Float64) : self #

def append(value : Number) : self #

def append_array(other : PackedFloat64Array | Array(Float64)) : self #

def clear : Void #

def clone : PackedFloat64Array #

def count(value : Float64) : Int64 #

def dup : PackedFloat64Array #
Description copied from class Reference

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.


def duplicate : PackedFloat64Array #

def each(& : Float64 -> ) : Void #
Description copied from module Enumerable(Float64)

Must yield this collection's elements to the block.


def empty? : Bool #
Description copied from module Enumerable(Float64)

Returns true if self does not contain any element.

([] of Int32).empty? # => true
([1]).empty?         # => false
[nil, false].empty?  # => false
  • #present? returns the inverse.

def fill(value : Float64) : self #

def fill(value : Number) : self #

def find(value : Float64, from : Int = 0) : Int64 #

def has(value : Float64) : Bool #

def insert(index : Int, value : Float64) : self #

def is_empty : Bool #

def push(value : Float64) : self #

def push_back(value : Float64) : self #

def push_back(value : Number) : self #

def remove_at(index : Int) : Float64 #

def resize(new_size : Int) : Void #

def reverse : self #

def reverse! : self #

def size : Int64 #
Description copied from module Enumerable(Float64)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

def slice(begin_idx : Int, end_idx : Int = @store.size) : PackedFloat64Array #

def to_a : Array(Float64) #
Description copied from module Enumerable(Float64)

Returns an Array with all the elements in the collection.

(1..5).to_a # => [1, 2, 3, 4, 5]

def to_unsafe : Pointer(Float64) #

def write_bridge_payload(ret_ptr : Pointer(Void)) : Void #