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

Public Member Functions

 Parabolaf (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 Parabolaf ()
 Parabolaf (meshlib.Parabolaf _other)
 Parabolaf (float a, float b, float c)
meshlib.Parabolaf assignFromAnother (meshlib.Parabolaf _other)
float call (float x)
float extremArg ()
float extremVal ()
float a ()
void setA (float value)
float b ()
void setB (float value)
float c ()
void setC (float value)
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

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

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

Constructor & Destructor Documentation

◆ Parabolaf() [1/4]

meshlib.Parabolaf.Parabolaf ( 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.

◆ Parabolaf() [2/4]

meshlib.Parabolaf.Parabolaf ( )

Constructs an empty (default-constructed) instance.

Calls MR_Parabolaf_DefaultConstruct().

◆ Parabolaf() [3/4]

meshlib.Parabolaf.Parabolaf ( meshlib.Parabolaf _other)

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

Calls MR_Parabolaf_ConstructFromAnother().

◆ Parabolaf() [4/4]

meshlib.Parabolaf.Parabolaf ( float a,
float b,
float c )

Generated from constructor MR::Parabolaf::Parabolaf.

Calls MR_Parabolaf_Construct().

Member Function Documentation

◆ a()

float meshlib.Parabolaf.a ( )

Returns a pointer to a member variable of class MR::Parabolaf named a. The reference to this object might be preserved as the return value.

Calls MR_Parabolaf_Get_a().

◆ assignFromAnother()

meshlib.Parabolaf meshlib.Parabolaf.assignFromAnother ( meshlib.Parabolaf _other)

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

Calls MR_Parabolaf_AssignFromAnother().

◆ b()

float meshlib.Parabolaf.b ( )

Returns a pointer to a member variable of class MR::Parabolaf named b. The reference to this object might be preserved as the return value.

Calls MR_Parabolaf_Get_b().

◆ c()

float meshlib.Parabolaf.c ( )

Returns a pointer to a member variable of class MR::Parabolaf named c. The reference to this object might be preserved as the return value.

Calls MR_Parabolaf_Get_c().

◆ call()

float meshlib.Parabolaf.call ( float x)

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

Calls MR_Parabolaf_call().

◆ extremArg()

float meshlib.Parabolaf.extremArg ( )

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().

◆ extremVal()

float meshlib.Parabolaf.extremVal ( )

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().

◆ setA()

void meshlib.Parabolaf.setA ( float value)

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

Calls MR_Parabolaf_Set_a().

◆ setB()

void meshlib.Parabolaf.setB ( float value)

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

Calls MR_Parabolaf_Set_b().

◆ setC()

void meshlib.Parabolaf.setC ( float value)

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

Calls MR_Parabolaf_Set_c().


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