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

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

f64 x
f64 y

Detailed Description

Generated from class MR::Vector2d.

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

Member Function Documentation

◆ construct_1()

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

Generated from constructor MR::Vector2d::Vector2d.

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

◆ construct_2()

auto meshlib::Vector2d::construct_2 ( x:f64 ,
y:f64  ) -> meshlib::Vector2d
static

Generated from constructor MR::Vector2d::Vector2d.

Calls MR_Vector2d_Construct_2().

◆ diagonal()

auto meshlib::Vector2d::diagonal ( a:f64 ) -> meshlib::Vector2d
static

Generated from method MR::Vector2d::diagonal.

Calls MR_Vector2d_diagonal().

◆ elements()

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

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

Calls MR_Vector2d_Get_elements().

◆ furthest_basis_vector()

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

Generated from method MR::Vector2d::furthestBasisVector.

Calls MR_Vector2d_furthestBasisVector().

◆ index()

auto meshlib::Vector2d::index ( e:core::ffi::c_int ) const -> &f64

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

Calls MR_Vector2d_index().

◆ index_mut()

auto meshlib::Vector2d::index_mut ( e:core::ffi::c_int ) -> &mut f64

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

Calls MR_Vector2d_index_mut().

◆ is_finite()

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

Generated from method MR::Vector2d::isFinite.

Calls MR_Vector2d_isFinite().

◆ length()

auto meshlib::Vector2d::length ( ) const -> f64

Generated from method MR::Vector2d::length.

Calls MR_Vector2d_length().

◆ length_sq()

auto meshlib::Vector2d::length_sq ( ) const -> f64

Generated from method MR::Vector2d::lengthSq.

Calls MR_Vector2d_lengthSq().

◆ minus_x()

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

Generated from method MR::Vector2d::minusX.

Calls MR_Vector2d_minusX().

◆ minus_y()

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

Generated from method MR::Vector2d::minusY.

Calls MR_Vector2d_minusY().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Vector2d_DefaultConstruct().

◆ normalized()

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

Generated from method MR::Vector2d::normalized.

Calls MR_Vector2d_normalized().

◆ perpendicular()

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

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

Calls MR_Vector2d_perpendicular().

◆ plus_x()

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

Generated from method MR::Vector2d::plusX.

Calls MR_Vector2d_plusX().

◆ plus_y()

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

Generated from method MR::Vector2d::plusY.

Calls MR_Vector2d_plusY().

Member Data Documentation

◆ x

f64 meshlib::Vector2d::x

◆ y

f64 meshlib::Vector2d::y

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