class
Godot::PackedFloat32Array
- Godot::PackedFloat32Array
- Reference
- Object
Included Modules
- Enumerable(Float32)
Defined in:
libgodot/collections.crConstructors
- .from(items : Array(Float32)) : PackedFloat32Array
- .new(size : Int, initial_value : Float32 = 0.0_f32)
- .new(initial_items : Array(Float32))
- .new
Instance Method Summary
- #<<(value : Float32) : self
- #[](index : Int) : Float32
- #[]=(index : Int, value : Float32) : Float32
- #[]?(index : Int) : Float32 | Nil
- #append(value : Float32) : self
- #clear : Void
-
#each(&block : Float32 -> Void) : Void
Must yield this collection's elements to the block.
-
#empty? : Bool
Returns
trueifselfdoes not contain any element. - #is_empty : Bool
- #push(value : Float32) : self
- #resize(new_size : Int) : Void
-
#size : Int64
Returns the number of elements in the collection.
-
#to_a : Array(Float32)
Returns an
Arraywith all the elements in the collection.
Constructor Detail
Instance Method Detail
def each(&block : Float32 -> Void) : Void
#
Description copied from module Enumerable(Float32)
Must yield this collection's elements to the block.
def empty? : Bool
#
Description copied from module Enumerable(Float32)
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 size : Int64
#
Description copied from module Enumerable(Float32)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4