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

Public Member Functions

 QuadraticForm2f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 QuadraticForm2f ()
 QuadraticForm2f (meshlib.SymMatrix2f A, float c)
 QuadraticForm2f (meshlib.QuadraticForm2f _other)
meshlib.QuadraticForm2f assignFromAnother (meshlib.QuadraticForm2f _other)
float eval (meshlib.Vector2f x)
void addDistToOrigin (float weight)
void addDistToPlane (meshlib.Vector2f planeUnitNormal)
void addDistToPlane (meshlib.Vector2f planeUnitNormal, float weight)
void addDistToLine (meshlib.Vector2f lineUnitDir)
void addDistToLine (meshlib.Vector2f lineUnitDir, float weight)
meshlib.SymMatrix2f A ()
void setA (meshlib.SymMatrix2f 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

quadratic form: f = x^T A x + c Generated from class MR::QuadraticForm2f.

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

Constructor & Destructor Documentation

◆ QuadraticForm2f() [1/4]

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

◆ QuadraticForm2f() [2/4]

meshlib.QuadraticForm2f.QuadraticForm2f ( )

Constructs an empty (default-constructed) instance.

Calls MR_QuadraticForm2f_DefaultConstruct().

◆ QuadraticForm2f() [3/4]

meshlib.QuadraticForm2f.QuadraticForm2f ( meshlib.SymMatrix2f A,
float c )

Constructs MR::QuadraticForm2f elementwise. The reference to the parameter A might be preserved in the constructed object.

Calls MR_QuadraticForm2f_ConstructFrom().

◆ QuadraticForm2f() [4/4]

meshlib.QuadraticForm2f.QuadraticForm2f ( meshlib.QuadraticForm2f _other)

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

Calls MR_QuadraticForm2f_ConstructFromAnother().

Member Function Documentation

◆ A()

meshlib.SymMatrix2f meshlib.QuadraticForm2f.A ( )

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

Calls MR_QuadraticForm2f_Get_A().

◆ addDistToLine() [1/2]

void meshlib.QuadraticForm2f.addDistToLine ( meshlib.Vector2f lineUnitDir)

adds to this squared distance to line passing via origin with given unit direction Generated from method MR::QuadraticForm2f::addDistToLine.

Calls MR_QuadraticForm2f_addDistToLine_1().

◆ addDistToLine() [2/2]

void meshlib.QuadraticForm2f.addDistToLine ( meshlib.Vector2f lineUnitDir,
float weight )

Generated from method MR::QuadraticForm2f::addDistToLine.

Calls MR_QuadraticForm2f_addDistToLine_2().

◆ addDistToOrigin()

void meshlib.QuadraticForm2f.addDistToOrigin ( float weight)

adds to this squared distance to the origin point Generated from method MR::QuadraticForm2f::addDistToOrigin.

Calls MR_QuadraticForm2f_addDistToOrigin().

◆ addDistToPlane() [1/2]

void meshlib.QuadraticForm2f.addDistToPlane ( meshlib.Vector2f planeUnitNormal)

adds to this squared distance to plane passing via origin with given unit normal Generated from method MR::QuadraticForm2f::addDistToPlane.

Calls MR_QuadraticForm2f_addDistToPlane_1().

◆ addDistToPlane() [2/2]

void meshlib.QuadraticForm2f.addDistToPlane ( meshlib.Vector2f planeUnitNormal,
float weight )

Generated from method MR::QuadraticForm2f::addDistToPlane.

Calls MR_QuadraticForm2f_addDistToPlane_2().

◆ assignFromAnother()

meshlib.QuadraticForm2f meshlib.QuadraticForm2f.assignFromAnother ( meshlib.QuadraticForm2f _other)

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

Calls MR_QuadraticForm2f_AssignFromAnother().

◆ c()

float meshlib.QuadraticForm2f.c ( )

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

Calls MR_QuadraticForm2f_Get_c().

◆ eval()

float meshlib.QuadraticForm2f.eval ( meshlib.Vector2f x)

evaluates the function at given x Generated from method MR::QuadraticForm2f::eval.

Calls MR_QuadraticForm2f_eval().

◆ setA()

void meshlib.QuadraticForm2f.setA ( meshlib.SymMatrix2f value)

Modifies a member variable of class MR::QuadraticForm2f named A. The reference to the parameter value might be preserved in this object in element A.

Calls MR_QuadraticForm2f_Set_A().

◆ setC()

void meshlib.QuadraticForm2f.setC ( float value)

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

Calls MR_QuadraticForm2f_Set_c().


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