MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::Vector2f:

Public Member Functions

auto index (e:core::ffi::c_int) const -> &f32
auto index_mut (e:core::ffi::c_int) -> &mut f32
auto length_sq () const -> f32
auto length () const -> f32
auto normalized () const -> meshlib::Vector2f
auto furthest_basis_vector () const -> meshlib::Vector2f
auto perpendicular () const -> meshlib::Vector2f
auto is_finite () const -> bool

Static Public Member Functions

static auto new () -> meshlib::Vector2f
static auto construct_1 (_1:&meshlib::NoInit) -> meshlib::Vector2f
static auto construct_2 (x:f32, y:f32) -> meshlib::Vector2f
static auto diagonal (a:f32) -> meshlib::Vector2f
static auto plus_x () -> meshlib::Vector2f
static auto plus_y () -> meshlib::Vector2f
static auto minus_x () -> meshlib::Vector2f
static auto minus_y () -> meshlib::Vector2f
static auto elements () -> *const core::ffi::c_int

Public Attributes

f32 x
f32 y

Detailed Description

Generated from class MR::Vector2f.

Generated from struct MR::Vector2f. The fields are accessed directly.

Member Function Documentation

◆ construct_1()

auto meshlib::Vector2f::construct_1 ( _1:&meshlib::NoInit ) -> meshlib::Vector2f
static

Generated from constructor MR::Vector2f::Vector2f.

Calls MR_Vector2f_Construct_1(). The reference to the parameter _1 might be preserved in the constructed object.

◆ construct_2()

auto meshlib::Vector2f::construct_2 ( x:f32 ,
y:f32  ) -> meshlib::Vector2f
static

Generated from constructor MR::Vector2f::Vector2f.

Calls MR_Vector2f_Construct_2().

◆ diagonal()

auto meshlib::Vector2f::diagonal ( a:f32 ) -> meshlib::Vector2f
static

Generated from method MR::Vector2f::diagonal.

Calls MR_Vector2f_diagonal().

◆ elements()

auto meshlib::Vector2f::elements ( ) -> *const core::ffi::c_int
static

Returns a pointer to a member variable of class MR::Vector2f named elements.

Calls MR_Vector2f_Get_elements().

◆ furthest_basis_vector()

auto meshlib::Vector2f::furthest_basis_vector ( ) const -> meshlib::Vector2f

Generated from method MR::Vector2f::furthestBasisVector.

Calls MR_Vector2f_furthestBasisVector().

◆ index()

auto meshlib::Vector2f::index ( e:core::ffi::c_int ) const -> &f32

Generated from method MR::Vector2f::operator[].

Calls MR_Vector2f_index().

◆ index_mut()

auto meshlib::Vector2f::index_mut ( e:core::ffi::c_int ) -> &mut f32

Generated from method MR::Vector2f::operator[].

Calls MR_Vector2f_index_mut().

◆ is_finite()

auto meshlib::Vector2f::is_finite ( ) const -> bool

Generated from method MR::Vector2f::isFinite.

Calls MR_Vector2f_isFinite().

◆ length()

auto meshlib::Vector2f::length ( ) const -> f32

Generated from method MR::Vector2f::length.

Calls MR_Vector2f_length().

◆ length_sq()

auto meshlib::Vector2f::length_sq ( ) const -> f32

Generated from method MR::Vector2f::lengthSq.

Calls MR_Vector2f_lengthSq().

◆ minus_x()

auto meshlib::Vector2f::minus_x ( ) -> meshlib::Vector2f
static

Generated from method MR::Vector2f::minusX.

Calls MR_Vector2f_minusX().

◆ minus_y()

auto meshlib::Vector2f::minus_y ( ) -> meshlib::Vector2f
static

Generated from method MR::Vector2f::minusY.

Calls MR_Vector2f_minusY().

◆ new()

auto meshlib::Vector2f::new ( ) -> meshlib::Vector2f
static

Constructs an empty (default-constructed) instance.

Calls MR_Vector2f_DefaultConstruct().

◆ normalized()

auto meshlib::Vector2f::normalized ( ) const -> meshlib::Vector2f

Generated from method MR::Vector2f::normalized.

Calls MR_Vector2f_normalized().

◆ perpendicular()

auto meshlib::Vector2f::perpendicular ( ) const -> meshlib::Vector2f

returns same length vector orthogonal to this (rotated 90 degrees counter-clockwise) Generated from method MR::Vector2f::perpendicular.

Calls MR_Vector2f_perpendicular().

◆ plus_x()

auto meshlib::Vector2f::plus_x ( ) -> meshlib::Vector2f
static

Generated from method MR::Vector2f::plusX.

Calls MR_Vector2f_plusX().

◆ plus_y()

auto meshlib::Vector2f::plus_y ( ) -> meshlib::Vector2f
static

Generated from method MR::Vector2f::plusY.

Calls MR_Vector2f_plusY().

Member Data Documentation

◆ x

f32 meshlib::Vector2f::x

◆ y

f32 meshlib::Vector2f::y

The documentation for this struct was generated from the following file: