MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::BestFitParabolaf Struct Reference
Inheritance diagram for meshlib::BestFitParabolaf:

Public Member Functions

auto assign_from_another (_other:&meshlib::BestFitParabolaf) -> &mut meshlib::BestFitParabolaf
void add_point_2 (x:f32, y:f32)
void add_point_3 (x:f32, y:f32, weight:f32)
auto get_best_parabola (tol:Option< f32 >) const -> meshlib::Owned< meshlib::Parabolaf >

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::BestFitParabolaf >
static auto construct_from_another (_other:&meshlib::BestFitParabolaf) -> meshlib::Owned< meshlib::BestFitParabolaf >
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

accumulates a number of (x,y) points to find the best-least-squares parabola approximating them Generated from class MR::BestFitParabolaf.

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

Member Function Documentation

◆ add_point_2()

void meshlib::BestFitParabolaf::add_point_2 ( x:f32 ,
y:f32  )

accumulates one more point for parabola fitting Generated from method MR::BestFitParabolaf::addPoint.

Calls MR_BestFitParabolaf_addPoint_2().

◆ add_point_3()

void meshlib::BestFitParabolaf::add_point_3 ( x:f32 ,
y:f32 ,
weight:f32  )

accumulates one more point with given weight for parabola fitting Generated from method MR::BestFitParabolaf::addPoint.

Calls MR_BestFitParabolaf_addPoint_3().

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::BestFitParabolaf::BestFitParabolaf.

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

◆ get_best_parabola()

auto meshlib::BestFitParabolaf::get_best_parabola ( tol:Option< f32 > ) const -> meshlib::Owned< meshlib::Parabolaf >

computes the best approximating parabola from the accumulated points; Generated from method MR::BestFitParabolaf::getBestParabola.

Calls MR_BestFitParabolaf_getBestParabola().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_BestFitParabolaf_DefaultConstruct().


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