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

Public Member Functions

auto assign_from_another (_other:&meshlib::Parabolaf) -> &mut meshlib::Parabolaf
auto call (x:f32) const -> f32
auto extrem_arg () const -> f32
auto extrem_val () const -> f32
auto a () const -> &f32
auto a_mut () -> &mut f32
void set_a (value:f32)
auto b () const -> &f32
auto b_mut () -> &mut f32
void set_b (value:f32)
auto c () const -> &f32
auto c_mut () -> &mut f32
void set_c (value:f32)

Static Public Member Functions

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

Represents quadratic function f(x) = a*x*x + b*x + c Generated from class MR::Parabolaf.

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

Member Function Documentation

◆ a()

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

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

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

◆ a_mut()

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

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

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

◆ assign_from_another()

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

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

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

◆ b()

auto meshlib::Parabolaf::b ( ) const -> &f32

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

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

◆ b_mut()

auto meshlib::Parabolaf::b_mut ( ) -> &mut f32

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

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

◆ c()

auto meshlib::Parabolaf::c ( ) const -> &f32

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

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

◆ c_mut()

auto meshlib::Parabolaf::c_mut ( ) -> &mut f32

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

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

◆ call()

auto meshlib::Parabolaf::call ( x:f32 ) const -> f32

compute value of quadratic function at any x Generated from method MR::Parabolaf::operator().

Calls MR_Parabolaf_call().

◆ construct()

auto meshlib::Parabolaf::construct ( a:f32 ,
b:f32 ,
c:f32  ) -> meshlib::Owned< meshlib::Parabolaf >
static

Generated from constructor MR::Parabolaf::Parabolaf.

Calls MR_Parabolaf_Construct().

◆ construct_from_another()

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

Generated from constructor MR::Parabolaf::Parabolaf.

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

◆ extrem_arg()

auto meshlib::Parabolaf::extrem_arg ( ) const -> f32

argument (x) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0 Generated from method MR::Parabolaf::extremArg.

Calls MR_Parabolaf_extremArg().

◆ extrem_val()

auto meshlib::Parabolaf::extrem_val ( ) const -> f32

value (y) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0 Generated from method MR::Parabolaf::extremVal.

Calls MR_Parabolaf_extremVal().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Parabolaf_DefaultConstruct().

◆ set_a()

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

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

Calls MR_Parabolaf_Set_a().

◆ set_b()

void meshlib::Parabolaf::set_b ( value:f32 )

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

Calls MR_Parabolaf_Set_b().

◆ set_c()

void meshlib::Parabolaf::set_c ( value:f32 )

Modifies a member variable of class MR::Parabolaf named c.

Calls MR_Parabolaf_Set_c().


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