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

Public Member Functions

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

Static Public Member Functions

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

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

Member Function Documentation

◆ a()

auto meshlib::LineSegm3f::a ( ) const -> &meshlib::Vector3f

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

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

◆ a_mut()

auto meshlib::LineSegm3f::a_mut ( ) -> &mut meshlib::Vector3f

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

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

◆ assign_from_another()

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

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

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

◆ b()

auto meshlib::LineSegm3f::b ( ) const -> &meshlib::Vector3f

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

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

◆ b_mut()

auto meshlib::LineSegm3f::b_mut ( ) -> &mut meshlib::Vector3f

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

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

◆ call()

auto meshlib::LineSegm3f::call ( param:f32 ) const -> meshlib::Vector3f

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

Calls MR_LineSegm3f_call().

◆ construct()

auto meshlib::LineSegm3f::construct ( a:&meshlib::Vector3f ,
b:&meshlib::Vector3f  ) -> meshlib::Owned< meshlib::LineSegm3f >
static

Generated from constructor MR::LineSegm3f::LineSegm3f.

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

Generated from constructor MR::LineSegm3f::LineSegm3f.

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

◆ dir()

auto meshlib::LineSegm3f::dir ( ) const -> meshlib::Vector3f

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

Calls MR_LineSegm3f_dir().

◆ length()

auto meshlib::LineSegm3f::length ( ) const -> f32

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

Calls MR_LineSegm3f_length().

◆ length_sq()

auto meshlib::LineSegm3f::length_sq ( ) const -> f32

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

Calls MR_LineSegm3f_lengthSq().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_LineSegm3f_DefaultConstruct().

◆ set_a()

void meshlib::LineSegm3f::set_a ( value:meshlib::Vector3f )

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

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

◆ set_b()

void meshlib::LineSegm3f::set_b ( value:meshlib::Vector3f )

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

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