MeshLib Rust Docs
Loading...
Searching...
No Matches

encodes a point inside a line segment using relative distance in [0,1] Generated from class MR::SegmPointd. More...

Inheritance diagram for meshlib::SegmPointd:

Public Member Functions

auto convert_to_double () const -> f64
auto convert_to_double_ref () -> &mut f64
auto assign_from_another (_other:&meshlib::SegmPointd) -> &mut meshlib::SegmPointd
auto in_vertex () const -> core::ffi::c_int
auto sym () const -> meshlib::Owned< meshlib::SegmPointd >
auto op_equal (rhs:&meshlib::SegmPointd) const -> bool
auto op_not_equal (rhs:&meshlib::SegmPointd) const -> bool
auto op_equal_double (rhs:f64) const -> bool
auto op_not_equal_double (rhs:f64) const -> bool
auto a () const -> &f64
auto a_mut () -> &mut f64
void set_a (value:f64)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SegmPointd >
static auto construct_from_another (_other:&meshlib::SegmPointd) -> meshlib::Owned< meshlib::SegmPointd >
static auto construct (a:f64) -> meshlib::Owned< meshlib::SegmPointd >
static auto eps () -> *const f64
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

encodes a point inside a line segment using relative distance in [0,1] Generated from class MR::SegmPointd.

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

Member Function Documentation

◆ a()

auto meshlib::SegmPointd::a ( ) const -> &f64

< a in [0,1], a=0 => point is in v0, a=1 => point is in v1 Returns a pointer to a member variable of class MR::SegmPointd named a.

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

◆ a_mut()

auto meshlib::SegmPointd::a_mut ( ) -> &mut f64

< a in [0,1], a=0 => point is in v0, a=1 => point is in v1 Returns a mutable pointer to a member variable of class MR::SegmPointd named a.

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

◆ assign_from_another()

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

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

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

◆ construct()

auto meshlib::SegmPointd::construct ( a:f64 ) -> meshlib::Owned< meshlib::SegmPointd >
static

Generated from constructor MR::SegmPointd::SegmPointd.

Calls MR_SegmPointd_Construct().

◆ construct_from_another()

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

Generated from constructor MR::SegmPointd::SegmPointd.

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

◆ convert_to_double()

auto meshlib::SegmPointd::convert_to_double ( ) const -> f64

Generated from conversion operator MR::SegmPointd::operator double.

Calls MR_SegmPointd_ConvertTo_double().

◆ convert_to_double_ref()

auto meshlib::SegmPointd::convert_to_double_ref ( ) -> &mut f64

Generated from conversion operator MR::SegmPointd::operator double &.

Calls MR_SegmPointd_ConvertTo_double_ref().

◆ eps()

auto meshlib::SegmPointd::eps ( ) -> *const f64
static

Returns a pointer to a member variable of class MR::SegmPointd named eps.

Calls MR_SegmPointd_Get_eps().

◆ in_vertex()

auto meshlib::SegmPointd::in_vertex ( ) const -> core::ffi::c_int

returns [0,1] if the point is in a vertex or -1 otherwise Generated from method MR::SegmPointd::inVertex.

Calls MR_SegmPointd_inVertex().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_SegmPointd_DefaultConstruct().

◆ op_equal()

auto meshlib::SegmPointd::op_equal ( rhs:&meshlib::SegmPointd ) const -> bool

returns true if two points have equal (a) representation Generated from method MR::SegmPointd::operator==.

Calls MR_equal_MR_SegmPointd().

◆ op_equal_double()

auto meshlib::SegmPointd::op_equal_double ( rhs:f64 ) const -> bool

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

Calls MR_equal_MR_SegmPointd_double().

◆ op_not_equal()

auto meshlib::SegmPointd::op_not_equal ( rhs:&meshlib::SegmPointd ) const -> bool

returns true if two points have equal (a) representation Generated from method MR::SegmPointd::operator!=.

Calls MR_not_equal_MR_SegmPointd().

◆ op_not_equal_double()

auto meshlib::SegmPointd::op_not_equal_double ( rhs:f64 ) const -> bool

Generated from method MR::SegmPointd::operator!=.

Calls MR_not_equal_MR_SegmPointd_double().

◆ set_a()

void meshlib::SegmPointd::set_a ( value:f64 )

< a in [0,1], a=0 => point is in v0, a=1 => point is in v1 Modifies a member variable of class MR::SegmPointd named a.

Calls MR_SegmPointd_Set_a().

◆ sym()

auto meshlib::SegmPointd::sym ( ) const -> meshlib::Owned< meshlib::SegmPointd >

represents the same point relative to oppositely directed segment Generated from method MR::SegmPointd::sym.

Calls MR_SegmPointd_sym().


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