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

Public Member Functions

auto assign_from_another (_other:&meshlib::LineSegm2d) -> &mut meshlib::LineSegm2d
auto dir () const -> meshlib::Vector2d
auto length_sq () const -> f64
auto length () const -> f64
auto call (param:f64) const -> meshlib::Vector2d
auto a () const -> &meshlib::Vector2d
auto a_mut () -> &mut meshlib::Vector2d
void set_a (value:meshlib::Vector2d)
auto b () const -> &meshlib::Vector2d
auto b_mut () -> &mut meshlib::Vector2d
void set_b (value:meshlib::Vector2d)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::LineSegm2d >
static auto construct_from_another (_other:&meshlib::LineSegm2d) -> meshlib::Owned< meshlib::LineSegm2d >
static auto construct (a:&meshlib::Vector2d, b:&meshlib::Vector2d) -> meshlib::Owned< meshlib::LineSegm2d >
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

a segment of straight dimensional line Generated from class MR::LineSegm2d.

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

Member Function Documentation

◆ a()

auto meshlib::LineSegm2d::a ( ) const -> &meshlib::Vector2d

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

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

◆ a_mut()

auto meshlib::LineSegm2d::a_mut ( ) -> &mut meshlib::Vector2d

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

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

◆ assign_from_another()

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

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

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

◆ b()

auto meshlib::LineSegm2d::b ( ) const -> &meshlib::Vector2d

Returns a pointer to a member variable of class MR::LineSegm2d named b.

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

◆ b_mut()

auto meshlib::LineSegm2d::b_mut ( ) -> &mut meshlib::Vector2d

Returns a mutable pointer to a member variable of class MR::LineSegm2d named b.

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

◆ call()

auto meshlib::LineSegm2d::call ( param:f64 ) const -> meshlib::Vector2d

returns point on the line, where param=0 returns a and param=1 returns b Generated from method MR::LineSegm2d::operator().

Calls MR_LineSegm2d_call().

◆ construct()

auto meshlib::LineSegm2d::construct ( a:&meshlib::Vector2d ,
b:&meshlib::Vector2d  ) -> meshlib::Owned< meshlib::LineSegm2d >
static

Generated from constructor MR::LineSegm2d::LineSegm2d.

Calls MR_LineSegm2d_Construct(). The reference to the parameter a might be preserved in the constructed object. The reference to the parameter b might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::LineSegm2d::LineSegm2d.

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

◆ dir()

auto meshlib::LineSegm2d::dir ( ) const -> meshlib::Vector2d

returns directional vector of the line Generated from method MR::LineSegm2d::dir.

Calls MR_LineSegm2d_dir().

◆ length()

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

returns the length of this line segment Generated from method MR::LineSegm2d::length.

Calls MR_LineSegm2d_length().

◆ length_sq()

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

returns squared length of this line segment Generated from method MR::LineSegm2d::lengthSq.

Calls MR_LineSegm2d_lengthSq().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_LineSegm2d_DefaultConstruct().

◆ set_a()

void meshlib::LineSegm2d::set_a ( value:meshlib::Vector2d )

Modifies a member variable of class MR::LineSegm2d named a.

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

◆ set_b()

void meshlib::LineSegm2d::set_b ( value:meshlib::Vector2d )

Modifies a member variable of class MR::LineSegm2d named b.

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


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