[−][src]Struct gdnative::gdnative_common::Vector3Array
A reference-counted vector of Vector3
that uses Godot's pool allocator.
Methods
impl Vector3Array
[src]
impl Vector3Array
pub fn new() -> Vector3Array | [src] |
Creates an empty array.
pub fn from_variant_array(array: &VariantArray) -> Vector3Array | [src] |
Creates an array by trying to convert each variant.
See Variant::to_vector3
.
pub fn push(&mut self, vector: &TypedVector3D<f32, UnknownUnit>) | [src] |
Appends a vector to the end of the array.
pub fn push_array(&mut self, vectors: &Vector3Array) | [src] |
Appends each vector to the end of the array.
pub fn insert( | [src] |
Inserts a vector at the given offset.
pub fn invert(&mut self) | [src] |
Inverts the order of the elements in the array.
pub fn remove(&mut self, idx: i32) | [src] |
Removes an element at the given offset.
pub fn resize(&mut self, size: i32) | [src] |
Changes the size of the array, possibly removing elements or pushing default values.
pub fn get(&self, idx: i32) -> TypedVector3D<f32, UnknownUnit> | [src] |
Returns a copy of the element at the given offset.
pub fn set(&mut self, idx: i32, vector: &TypedVector3D<f32, UnknownUnit>) | [src] |
Sets the value of the element at the given offset.
pub fn len(&self) -> i32 | [src] |
Returns the number of elements in the array.
pub fn new_ref(&self) -> Vector3Array | [src] |
Trait Implementations
impl<'l> From<&'l Vector3Array> for Variant
[src]
impl<'l> From<&'l Vector3Array> for Variant
fn from(val: &'l Vector3Array) -> Variant | [src] |
impl Drop for Vector3Array
[src]
impl Drop for Vector3Array
impl Default for Vector3Array
[src]
impl Default for Vector3Array
fn default() -> Vector3Array | [src] |
impl ToVariant for Vector3Array
[src]
impl ToVariant for Vector3Array
fn to_variant(&self) -> Variant | [src] |
fn from_variant(variant: &Variant) -> Option<Vector3Array> | [src] |
Auto Trait Implementations
impl Send for Vector3Array
impl Send for Vector3Array
impl Sync for Vector3Array
impl Sync for Vector3Array
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |