Struct gdnative_physics::common::Vector2Array[]

pub struct Vector2Array(_);

A reference-counted vector of Vector2 that uses Godot's pool allocator.

Methods

impl Vector2Array

Creates an empty array.

Creates an array by trying to convert each variant

See Variant::to_vector2.

Appends a vector to the end of the array.

Appends each vector to the end of the array.

Inserts a vector at the given offset.

Inverts the order of the elements in the array.

Removes an element at the given offset.

Changes the size of the array, possibly removing elements or pushing default values.

Returns a copy of the element at the given offset.

Sets the value of the element at the given offset.

Returns the number of elements in the array.

Trait Implementations

impl ToVariant for Vector2Array

impl<'l> From<&'l Vector2Array> for Variant

Performs the conversion.

impl Default for Vector2Array

Returns the "default value" for a type. Read more

impl Drop for Vector2Array

Executes the destructor for this type. Read more

Auto Trait Implementations