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

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::Vector3f
auto furthest_basis_vector () const -> meshlib::Vector3f
auto perpendicular () const -> meshlib::Owned< meshlib::std_pair_MR_Vector3f_MR_Vector3f >
auto transformed (xf:Option<&meshlib::AffineXf3f >) const -> meshlib::Vector3f
void unsign_zero_values ()
auto is_finite () const -> bool

Static Public Member Functions

static auto new () -> meshlib::Vector3f
static auto construct_mr_no_init (_1:&meshlib::NoInit) -> meshlib::Vector3f
static auto construct (x:f32, y:f32, z:f32) -> meshlib::Vector3f
static auto construct_double (v:&meshlib::Vector3d) -> meshlib::Vector3f
static auto construct_int (v:&meshlib::Vector3i) -> meshlib::Vector3f
static auto diagonal (a:f32) -> meshlib::Vector3f
static auto plus_x () -> meshlib::Vector3f
static auto plus_y () -> meshlib::Vector3f
static auto plus_z () -> meshlib::Vector3f
static auto minus_x () -> meshlib::Vector3f
static auto minus_y () -> meshlib::Vector3f
static auto minus_z () -> meshlib::Vector3f
static auto elements () -> *const core::ffi::c_int

Public Attributes

f32 x
f32 y
f32 z

Detailed Description

Generated from class MR::Vector3f.

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

Member Function Documentation

◆ construct()

auto meshlib::Vector3f::construct ( x:f32 ,
y:f32 ,
z:f32  ) -> meshlib::Vector3f
static

Generated from constructor MR::Vector3f::Vector3f.

Calls MR_Vector3f_Construct().

◆ construct_double()

auto meshlib::Vector3f::construct_double ( v:&meshlib::Vector3d ) -> meshlib::Vector3f
static

Here T == U doesn't seem to cause any issues in the C++ code, but we're still disabling it because it somehow gets emitted when generating the bindings, and looks out of place there. Generated from constructor MR::Vector3f::Vector3f.

Calls MR_Vector3f_Construct_double(). The reference to the parameter v might be preserved in the constructed object.

◆ construct_int()

auto meshlib::Vector3f::construct_int ( v:&meshlib::Vector3i ) -> meshlib::Vector3f
static

Here T == U doesn't seem to cause any issues in the C++ code, but we're still disabling it because it somehow gets emitted when generating the bindings, and looks out of place there. Generated from constructor MR::Vector3f::Vector3f.

Calls MR_Vector3f_Construct_int(). The reference to the parameter v might be preserved in the constructed object.

◆ construct_mr_no_init()

auto meshlib::Vector3f::construct_mr_no_init ( _1:&meshlib::NoInit ) -> meshlib::Vector3f
static

Generated from constructor MR::Vector3f::Vector3f.

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

◆ diagonal()

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

Generated from method MR::Vector3f::diagonal.

Calls MR_Vector3f_diagonal().

◆ elements()

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

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

Calls MR_Vector3f_Get_elements().

◆ furthest_basis_vector()

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

Generated from method MR::Vector3f::furthestBasisVector.

Calls MR_Vector3f_furthestBasisVector().

◆ index()

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

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

Calls MR_Vector3f_index().

◆ index_mut()

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

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

Calls MR_Vector3f_index_mut().

◆ is_finite()

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

Generated from method MR::Vector3f::isFinite.

Calls MR_Vector3f_isFinite().

◆ length()

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

Generated from method MR::Vector3f::length.

Calls MR_Vector3f_length().

◆ length_sq()

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

Generated from method MR::Vector3f::lengthSq.

Calls MR_Vector3f_lengthSq().

◆ minus_x()

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

Generated from method MR::Vector3f::minusX.

Calls MR_Vector3f_minusX().

◆ minus_y()

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

Generated from method MR::Vector3f::minusY.

Calls MR_Vector3f_minusY().

◆ minus_z()

auto meshlib::Vector3f::minus_z ( ) -> meshlib::Vector3f
static

Generated from method MR::Vector3f::minusZ.

Calls MR_Vector3f_minusZ().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Vector3f_DefaultConstruct().

◆ normalized()

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

Generated from method MR::Vector3f::normalized.

Calls MR_Vector3f_normalized().

◆ perpendicular()

auto meshlib::Vector3f::perpendicular ( ) const -> meshlib::Owned< meshlib::std_pair_MR_Vector3f_MR_Vector3f >

Generated from method MR::Vector3f::perpendicular.

Calls MR_Vector3f_perpendicular().

◆ plus_x()

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

Generated from method MR::Vector3f::plusX.

Calls MR_Vector3f_plusX().

◆ plus_y()

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

Generated from method MR::Vector3f::plusY.

Calls MR_Vector3f_plusY().

◆ plus_z()

auto meshlib::Vector3f::plus_z ( ) -> meshlib::Vector3f
static

Generated from method MR::Vector3f::plusZ.

Calls MR_Vector3f_plusZ().

◆ transformed()

auto meshlib::Vector3f::transformed ( xf:Option<&meshlib::AffineXf3f > ) const -> meshlib::Vector3f

returns this vector transformed by xf if it is Generated from method MR::Vector3f::transformed.

Calls MR_Vector3f_transformed().

◆ unsign_zero_values()

void meshlib::Vector3f::unsign_zero_values ( )

get rid of signed zero values to be sure that equal vectors have identical binary representation Generated from method MR::Vector3f::unsignZeroValues.

Calls MR_Vector3f_unsignZeroValues().

Member Data Documentation

◆ x

f32 meshlib::Vector3f::x

◆ y

f32 meshlib::Vector3f::y

◆ z

f32 meshlib::Vector3f::z

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