MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.BestFitParabolad Class Reference
Inheritance diagram for meshlib.BestFitParabolad:

Public Member Functions

 BestFitParabolad (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 BestFitParabolad ()
 BestFitParabolad (meshlib.BestFitParabolad _other)
meshlib.BestFitParabolad assignFromAnother (meshlib.BestFitParabolad _other)
void addPoint (double x, double y)
void addPoint (double x, double y, double weight)
meshlib.Parabolad getBestParabola (java.lang.Double tol)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

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

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ BestFitParabolad() [1/3]

meshlib.BestFitParabolad.BestFitParabolad ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ BestFitParabolad() [2/3]

meshlib.BestFitParabolad.BestFitParabolad ( )

Constructs an empty (default-constructed) instance.

Calls MR_BestFitParabolad_DefaultConstruct().

◆ BestFitParabolad() [3/3]

meshlib.BestFitParabolad.BestFitParabolad ( meshlib.BestFitParabolad _other)

Generated from constructor MR::BestFitParabolad::BestFitParabolad. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_BestFitParabolad_ConstructFromAnother().

Member Function Documentation

◆ addPoint() [1/2]

void meshlib.BestFitParabolad.addPoint ( double x,
double y )

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

Calls MR_BestFitParabolad_addPoint_2().

◆ addPoint() [2/2]

void meshlib.BestFitParabolad.addPoint ( double x,
double y,
double weight )

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

Calls MR_BestFitParabolad_addPoint_3().

◆ assignFromAnother()

meshlib.BestFitParabolad meshlib.BestFitParabolad.assignFromAnother ( meshlib.BestFitParabolad _other)

Generated from method MR::BestFitParabolad::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_BestFitParabolad_AssignFromAnother().

◆ getBestParabola()

meshlib.Parabolad meshlib.BestFitParabolad.getBestParabola ( java.lang.Double tol)

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

Calls MR_BestFitParabolad_getBestParabola().


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