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

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

Inheritance diagram for meshlib::SegmPointf:

Public Member Functions

auto convert_to_float () const -> f32
auto convert_to_float_ref () -> &mut f32
auto assign_from_another (_other:&meshlib::SegmPointf) -> &mut meshlib::SegmPointf
auto in_vertex () const -> core::ffi::c_int
auto sym () const -> meshlib::Owned< meshlib::SegmPointf >
auto op_equal (rhs:&meshlib::SegmPointf) const -> bool
auto op_not_equal (rhs:&meshlib::SegmPointf) const -> bool
auto op_equal_float (rhs:f32) const -> bool
auto op_not_equal_float (rhs:f32) const -> bool
auto a () const -> &f32
auto a_mut () -> &mut f32
void set_a (value:f32)

Static Public Member Functions

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

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

Member Function Documentation

◆ a()

auto meshlib::SegmPointf::a ( ) const -> &f32

< 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::SegmPointf named a.

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

◆ a_mut()

auto meshlib::SegmPointf::a_mut ( ) -> &mut f32

< 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::SegmPointf named a.

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

◆ assign_from_another()

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

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

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

◆ construct()

auto meshlib::SegmPointf::construct ( a:f32 ) -> meshlib::Owned< meshlib::SegmPointf >
static

Generated from constructor MR::SegmPointf::SegmPointf.

Calls MR_SegmPointf_Construct().

◆ construct_from_another()

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

Generated from constructor MR::SegmPointf::SegmPointf.

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

◆ convert_to_float()

auto meshlib::SegmPointf::convert_to_float ( ) const -> f32

Generated from conversion operator MR::SegmPointf::operator float.

Calls MR_SegmPointf_ConvertTo_float().

◆ convert_to_float_ref()

auto meshlib::SegmPointf::convert_to_float_ref ( ) -> &mut f32

Generated from conversion operator MR::SegmPointf::operator float &.

Calls MR_SegmPointf_ConvertTo_float_ref().

◆ eps()

auto meshlib::SegmPointf::eps ( ) -> *const f32
static

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

Calls MR_SegmPointf_Get_eps().

◆ in_vertex()

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

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

Calls MR_SegmPointf_inVertex().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_SegmPointf_DefaultConstruct().

◆ op_equal()

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

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

Calls MR_equal_MR_SegmPointf().

◆ op_equal_float()

auto meshlib::SegmPointf::op_equal_float ( rhs:f32 ) const -> bool

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

Calls MR_equal_MR_SegmPointf_float().

◆ op_not_equal()

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

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

Calls MR_not_equal_MR_SegmPointf().

◆ op_not_equal_float()

auto meshlib::SegmPointf::op_not_equal_float ( rhs:f32 ) const -> bool

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

Calls MR_not_equal_MR_SegmPointf_float().

◆ set_a()

void meshlib::SegmPointf::set_a ( value:f32 )

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

Calls MR_SegmPointf_Set_a().

◆ sym()

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

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

Calls MR_SegmPointf_sym().


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