class
Godot::PackedVector3Array
- Godot::PackedVector3Array
- Reference
- Object
Included Modules
- Enumerable(Godot::Vector3)
Defined in:
libgodot/collections.crlibgodot/variant.cr
Constructors
- .from(items : Array(Vector3)) : PackedVector3Array
- .from_bridge_payload(payload_ptr : Pointer(Void)) : PackedVector3Array
- .from_raw(data_ptr : Pointer(Void), count : Int64) : PackedVector3Array
- .new(size : Int, initial_value : Vector3 = Vector3.new)
- .new(initial_items : Array(Vector3))
- .new
Instance Method Summary
- #<<(value : Vector3) : self
- #==(other : PackedVector3Array) : Bool
- #[](index : Int) : Vector3
- #[]=(index : Int, value : Vector3) : Vector3
- #[]?(index : Int) : Vector3 | Nil
- #append(value : Vector3) : self
- #append_array(other : PackedVector3Array | Array(Vector3)) : self
- #clear : Void
- #clone : PackedVector3Array
- #count(value : Vector3) : Int64
-
#dup : PackedVector3Array
Returns a shallow copy of this object.
- #duplicate : PackedVector3Array
-
#each(& : Vector3 -> ) : Void
Must yield this collection's elements to the block.
-
#empty? : Bool
Returns
trueifselfdoes not contain any element. - #fill(value : Vector3) : self
- #find(value : Vector3, from : Int = 0) : Int64
- #has(value : Vector3) : Bool
- #insert(index : Int, value : Vector3) : self
- #is_empty : Bool
- #push(value : Vector3) : self
- #push_back(value : Vector3) : self
- #remove_at(index : Int) : Vector3
- #resize(new_size : Int) : Void
- #reverse : self
- #reverse! : self
-
#size : Int64
Returns the number of elements in the collection.
- #slice(begin_idx : Int, end_idx : Int = @store.size) : PackedVector3Array
-
#to_a : Array(Vector3)
Returns an
Arraywith all the elements in the collection. - #to_unsafe : Pointer(Vector3)
- #write_bridge_payload(ret_ptr : Pointer(Void)) : Void
Instance methods inherited from class Object
try?(&)try? try?
Constructor Detail
Instance Method Detail
def dup : PackedVector3Array
#
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.
Description copied from module Enumerable(Godot::Vector3)
Must yield this collection's elements to the block.
def empty? : Bool
#
Description copied from module Enumerable(Godot::Vector3)
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(Godot::Vector3)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4
Description copied from module Enumerable(Godot::Vector3)
Returns an Array with all the elements in the collection.
(1..5).to_a # => [1, 2, 3, 4, 5]