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

Public Member Functions

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

Static Public Member Functions

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

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

Member Function Documentation

◆ add_point_2()

void meshlib::BestFitParabolad::add_point_2 ( x:f64 ,
y:f64  )

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

Calls MR_BestFitParabolad_addPoint_2().

◆ add_point_3()

void meshlib::BestFitParabolad::add_point_3 ( x:f64 ,
y:f64 ,
weight:f64  )

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

Calls MR_BestFitParabolad_addPoint_3().

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::BestFitParabolad::BestFitParabolad.

Calls MR_BestFitParabolad_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::BestFitParabolad::get_best_parabola ( tol:Option< f64 > ) const -> meshlib::Owned< meshlib::Parabolad >

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

Calls MR_BestFitParabolad_getBestParabola().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_BestFitParabolad_DefaultConstruct().


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