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

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

Static Public Member Functions

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

Public Attributes

f64 x
f64 y
f64 z

Detailed Description

Generated from class MR::Vector3d.

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

Member Function Documentation

◆ construct()

auto meshlib::Vector3d::construct ( x:f64 ,
y:f64 ,
z:f64  ) -> meshlib::Vector3d
static

Generated from constructor MR::Vector3d::Vector3d.

Calls MR_Vector3d_Construct().

◆ construct_float()

auto meshlib::Vector3d::construct_float ( v:&meshlib::Vector3f ) -> meshlib::Vector3d
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::Vector3d::Vector3d.

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

◆ construct_int()

auto meshlib::Vector3d::construct_int ( v:&meshlib::Vector3i ) -> meshlib::Vector3d
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::Vector3d::Vector3d.

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

◆ construct_mr_no_init()

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

Generated from constructor MR::Vector3d::Vector3d.

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

◆ diagonal()

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

Generated from method MR::Vector3d::diagonal.

Calls MR_Vector3d_diagonal().

◆ elements()

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

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

Calls MR_Vector3d_Get_elements().

◆ furthest_basis_vector()

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

Generated from method MR::Vector3d::furthestBasisVector.

Calls MR_Vector3d_furthestBasisVector().

◆ index()

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

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

Calls MR_Vector3d_index().

◆ index_mut()

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

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

Calls MR_Vector3d_index_mut().

◆ is_finite()

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

Generated from method MR::Vector3d::isFinite.

Calls MR_Vector3d_isFinite().

◆ length()

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

Generated from method MR::Vector3d::length.

Calls MR_Vector3d_length().

◆ length_sq()

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

Generated from method MR::Vector3d::lengthSq.

Calls MR_Vector3d_lengthSq().

◆ minus_x()

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

Generated from method MR::Vector3d::minusX.

Calls MR_Vector3d_minusX().

◆ minus_y()

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

Generated from method MR::Vector3d::minusY.

Calls MR_Vector3d_minusY().

◆ minus_z()

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

Generated from method MR::Vector3d::minusZ.

Calls MR_Vector3d_minusZ().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Vector3d_DefaultConstruct().

◆ normalized()

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

Generated from method MR::Vector3d::normalized.

Calls MR_Vector3d_normalized().

◆ perpendicular()

auto meshlib::Vector3d::perpendicular ( ) const -> meshlib::Owned< meshlib::std_pair_MR_Vector3d_MR_Vector3d >

Generated from method MR::Vector3d::perpendicular.

Calls MR_Vector3d_perpendicular().

◆ plus_x()

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

Generated from method MR::Vector3d::plusX.

Calls MR_Vector3d_plusX().

◆ plus_y()

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

Generated from method MR::Vector3d::plusY.

Calls MR_Vector3d_plusY().

◆ plus_z()

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

Generated from method MR::Vector3d::plusZ.

Calls MR_Vector3d_plusZ().

◆ transformed()

auto meshlib::Vector3d::transformed ( xf:Option<&meshlib::AffineXf3d > ) const -> meshlib::Vector3d

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

Calls MR_Vector3d_transformed().

◆ unsign_zero_values()

void meshlib::Vector3d::unsign_zero_values ( )

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

Calls MR_Vector3d_unsignZeroValues().

Member Data Documentation

◆ x

f64 meshlib::Vector3d::x

◆ y

f64 meshlib::Vector3d::y

◆ z

f64 meshlib::Vector3d::z

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