MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::ConvertToIntVector Struct Reference
Inheritance diagram for meshlib::ConvertToIntVector:

Public Member Functions

auto assign_from_another (_other:&meshlib::ConvertToIntVector) -> &mut meshlib::ConvertToIntVector
auto scale_only (v:f64) const -> core::ffi::c_int
auto call_mr_vector3d (p:&meshlib::Vector3d) const -> meshlib::Vector3i
auto call_mr_vector3f (p:&meshlib::Vector3f) const -> meshlib::Vector3i
auto center () const -> &meshlib::Vector3d
auto center_mut () -> &mut meshlib::Vector3d
void set_center (value:meshlib::Vector3d)
auto inv_range () const -> &f64
auto inv_range_mut () -> &mut f64
void set_inv_range (value:f64)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ConvertToIntVector >
static auto construct_from (center:meshlib::Vector3d, invRange:f64) -> meshlib::Owned< meshlib::ConvertToIntVector >
static auto construct_from_another (_other:&meshlib::ConvertToIntVector) -> meshlib::Owned< meshlib::ConvertToIntVector >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

translate then scale float-to-int coordinate converter Generated from class MR::ConvertToIntVector.

Generated from class MR::ConvertToIntVector. Heap-allocated instances are held in Owned<ConvertToIntVector>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::ConvertToIntVector::assign_from_another ( _other:&meshlib::ConvertToIntVector ) -> &mut meshlib::ConvertToIntVector

Generated from method MR::ConvertToIntVector::operator=.

Calls MR_ConvertToIntVector_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ call_mr_vector3d()

auto meshlib::ConvertToIntVector::call_mr_vector3d ( p:&meshlib::Vector3d ) const -> meshlib::Vector3i

double-to-int coordinates converter Generated from method MR::ConvertToIntVector::operator().

Calls MR_ConvertToIntVector_call_MR_Vector3d().

◆ call_mr_vector3f()

auto meshlib::ConvertToIntVector::call_mr_vector3f ( p:&meshlib::Vector3f ) const -> meshlib::Vector3i

float-to-int coordinates converter Generated from method MR::ConvertToIntVector::operator().

Calls MR_ConvertToIntVector_call_MR_Vector3f().

◆ center()

auto meshlib::ConvertToIntVector::center ( ) const -> &meshlib::Vector3d

Returns a pointer to a member variable of class MR::ConvertToIntVector named center.

Calls MR_ConvertToIntVector_Get_center(). The reference to this object might be preserved as the return value.

◆ center_mut()

auto meshlib::ConvertToIntVector::center_mut ( ) -> &mut meshlib::Vector3d

Returns a mutable pointer to a member variable of class MR::ConvertToIntVector named center.

Calls MR_ConvertToIntVector_GetMutable_center(). The reference to this object might be preserved as the return value.

◆ construct_from()

auto meshlib::ConvertToIntVector::construct_from ( center:meshlib::Vector3d ,
invRange:f64  ) -> meshlib::Owned< meshlib::ConvertToIntVector >
static

Constructs MR::ConvertToIntVector elementwise.

Calls MR_ConvertToIntVector_ConstructFrom(). The reference to the parameter center might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::ConvertToIntVector::construct_from_another ( _other:&meshlib::ConvertToIntVector ) -> meshlib::Owned< meshlib::ConvertToIntVector >
static

Generated from constructor MR::ConvertToIntVector::ConvertToIntVector.

Calls MR_ConvertToIntVector_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ inv_range()

auto meshlib::ConvertToIntVector::inv_range ( ) const -> &f64

Returns a pointer to a member variable of class MR::ConvertToIntVector named invRange.

Calls MR_ConvertToIntVector_Get_invRange(). The reference to this object might be preserved as the return value.

◆ inv_range_mut()

auto meshlib::ConvertToIntVector::inv_range_mut ( ) -> &mut f64

Returns a mutable pointer to a member variable of class MR::ConvertToIntVector named invRange.

Calls MR_ConvertToIntVector_GetMutable_invRange(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::ConvertToIntVector::new ( ) -> meshlib::Owned< meshlib::ConvertToIntVector >
static

Constructs an empty (default-constructed) instance.

Calls MR_ConvertToIntVector_DefaultConstruct().

◆ scale_only()

auto meshlib::ConvertToIntVector::scale_only ( v:f64 ) const -> core::ffi::c_int

applies scaling only (without translation) with the following rounding to the nearest int Generated from method MR::ConvertToIntVector::scaleOnly.

Calls MR_ConvertToIntVector_scaleOnly().

◆ set_center()

void meshlib::ConvertToIntVector::set_center ( value:meshlib::Vector3d )

Modifies a member variable of class MR::ConvertToIntVector named center.

Calls MR_ConvertToIntVector_Set_center(). The reference to the parameter value might be preserved in this object in element center.

◆ set_inv_range()

void meshlib::ConvertToIntVector::set_inv_range ( value:f64 )

Modifies a member variable of class MR::ConvertToIntVector named invRange.

Calls MR_ConvertToIntVector_Set_invRange().


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