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

Public Member Functions

auto index (e:core::ffi::c_int) const -> &bool
auto index_mut (e:core::ffi::c_int) -> &mut bool
auto length_sq () const -> core::ffi::c_int
auto length () const -> f64

Static Public Member Functions

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

Public Attributes

bool x
bool y

Detailed Description

two-dimensional vector Generated from class MR::Vector2b.

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

Member Function Documentation

◆ construct_1()

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

Generated from constructor MR::Vector2b::Vector2b.

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

◆ construct_2()

auto meshlib::Vector2b::construct_2 ( x:bool ,
y:bool  ) -> meshlib::Vector2b
static

Generated from constructor MR::Vector2b::Vector2b.

Calls MR_Vector2b_Construct_2().

◆ diagonal()

auto meshlib::Vector2b::diagonal ( a:bool ) -> meshlib::Vector2b
static

Generated from method MR::Vector2b::diagonal.

Calls MR_Vector2b_diagonal().

◆ elements()

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

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

Calls MR_Vector2b_Get_elements().

◆ index()

auto meshlib::Vector2b::index ( e:core::ffi::c_int ) const -> &bool

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

Calls MR_Vector2b_index().

◆ index_mut()

auto meshlib::Vector2b::index_mut ( e:core::ffi::c_int ) -> &mut bool

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

Calls MR_Vector2b_index_mut().

◆ length()

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

Generated from method MR::Vector2b::length.

Calls MR_Vector2b_length().

◆ length_sq()

auto meshlib::Vector2b::length_sq ( ) const -> core::ffi::c_int

Generated from method MR::Vector2b::lengthSq.

Calls MR_Vector2b_lengthSq().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Vector2b_DefaultConstruct().

◆ plus_x()

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

Generated from method MR::Vector2b::plusX.

Calls MR_Vector2b_plusX().

◆ plus_y()

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

Generated from method MR::Vector2b::plusY.

Calls MR_Vector2b_plusY().

Member Data Documentation

◆ x

bool meshlib::Vector2b::x

◆ y

bool meshlib::Vector2b::y

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