Struct gdnative::Vector3Array [−][src]
pub struct Vector3Array(_);
A reference-counted vector of Vector3
that uses Godot's pool allocator.
Methods
impl Vector3Array
[src]
impl Vector3Array
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates an empty array.
pub fn from_variant_array(array: &VariantArray) -> Self
[src]
pub fn from_variant_array(array: &VariantArray) -> Self
Creates an array by trying to convert each variant.
See Variant::to_vector3
.
pub fn push(&mut self, vector: &Vector3)
[src]
pub fn push(&mut self, vector: &Vector3)
Appends a vector to the end of the array.
pub fn push_array(&mut self, vectors: &Vector3Array)
[src]
pub fn push_array(&mut self, vectors: &Vector3Array)
Appends each vector to the end of the array.
pub fn insert(&mut self, offset: i32, vector: &Vector3) -> bool
[src]
pub fn insert(&mut self, offset: i32, vector: &Vector3) -> bool
Inserts a vector at the given offset.
pub fn invert(&mut self)
[src]
pub fn invert(&mut self)
Inverts the order of the elements in the array.
pub fn remove(&mut self, idx: i32)
[src]
pub fn remove(&mut self, idx: i32)
Removes an element at the given offset.
pub fn resize(&mut self, size: i32)
[src]
pub fn resize(&mut self, size: i32)
Changes the size of the array, possibly removing elements or pushing default values.
pub fn get(&self, idx: i32) -> Vector3
[src]
pub fn get(&self, idx: i32) -> Vector3
Returns a copy of the element at the given offset.
pub fn set(&mut self, idx: i32, vector: &Vector3)
[src]
pub fn set(&mut self, idx: i32, vector: &Vector3)
Sets the value of the element at the given offset.
pub fn len(&self) -> i32
[src]
pub fn len(&self) -> i32
Returns the number of elements in the array.
pub fn new_ref(&self) -> Vector3Array
[src]
pub fn new_ref(&self) -> Vector3Array
Trait Implementations
impl<'l> From<&'l Vector3Array> for Variant
[src]
impl<'l> From<&'l Vector3Array> for Variant
fn from(val: &'l Vector3Array) -> Variant
[src]
fn from(val: &'l Vector3Array) -> Variant
Performs the conversion.
impl Drop for Vector3Array
[src]
impl Drop for Vector3Array
impl Default for Vector3Array
[src]
impl Default for Vector3Array
impl GodotType for Vector3Array
[src]
impl GodotType for Vector3Array
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
Auto Trait Implementations
impl Send for Vector3Array
impl Send for Vector3Array
impl Sync for Vector3Array
impl Sync for Vector3Array