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

Public Member Functions

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

Static Public Member Functions

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

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

Member Function Documentation

◆ a()

auto meshlib::LineSegm3d::a ( ) const -> &meshlib::Vector3d

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

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

◆ a_mut()

auto meshlib::LineSegm3d::a_mut ( ) -> &mut meshlib::Vector3d

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

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

◆ assign_from_another()

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

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

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

◆ b()

auto meshlib::LineSegm3d::b ( ) const -> &meshlib::Vector3d

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

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

◆ b_mut()

auto meshlib::LineSegm3d::b_mut ( ) -> &mut meshlib::Vector3d

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

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

◆ call()

auto meshlib::LineSegm3d::call ( param:f64 ) const -> meshlib::Vector3d

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

Calls MR_LineSegm3d_call().

◆ construct()

auto meshlib::LineSegm3d::construct ( a:&meshlib::Vector3d ,
b:&meshlib::Vector3d  ) -> meshlib::Owned< meshlib::LineSegm3d >
static

Generated from constructor MR::LineSegm3d::LineSegm3d.

Calls MR_LineSegm3d_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::LineSegm3d::construct_from_another ( _other:&meshlib::LineSegm3d ) -> meshlib::Owned< meshlib::LineSegm3d >
static

Generated from constructor MR::LineSegm3d::LineSegm3d.

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

◆ dir()

auto meshlib::LineSegm3d::dir ( ) const -> meshlib::Vector3d

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

Calls MR_LineSegm3d_dir().

◆ length()

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

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

Calls MR_LineSegm3d_length().

◆ length_sq()

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

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

Calls MR_LineSegm3d_lengthSq().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_LineSegm3d_DefaultConstruct().

◆ set_a()

void meshlib::LineSegm3d::set_a ( value:meshlib::Vector3d )

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

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

◆ set_b()

void meshlib::LineSegm3d::set_b ( value:meshlib::Vector3d )

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

Calls MR_LineSegm3d_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: