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

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ QuadraticForm3f() [1/4]

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

◆ QuadraticForm3f() [2/4]

meshlib.QuadraticForm3f.QuadraticForm3f ( )

Constructs an empty (default-constructed) instance.

Calls MR_QuadraticForm3f_DefaultConstruct().

◆ QuadraticForm3f() [3/4]

meshlib.QuadraticForm3f.QuadraticForm3f ( meshlib.SymMatrix3f A,
float c )

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

Calls MR_QuadraticForm3f_ConstructFrom().

◆ QuadraticForm3f() [4/4]

meshlib.QuadraticForm3f.QuadraticForm3f ( meshlib.QuadraticForm3f _other)

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

Calls MR_QuadraticForm3f_ConstructFromAnother().

Member Function Documentation

◆ A()

meshlib.SymMatrix3f meshlib.QuadraticForm3f.A ( )

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

Calls MR_QuadraticForm3f_Get_A().

◆ addDistToLine() [1/2]

void meshlib.QuadraticForm3f.addDistToLine ( meshlib.Vector3f lineUnitDir)

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

Calls MR_QuadraticForm3f_addDistToLine_1().

◆ addDistToLine() [2/2]

void meshlib.QuadraticForm3f.addDistToLine ( meshlib.Vector3f lineUnitDir,
float weight )

Generated from method MR::QuadraticForm3f::addDistToLine.

Calls MR_QuadraticForm3f_addDistToLine_2().

◆ addDistToOrigin()

void meshlib.QuadraticForm3f.addDistToOrigin ( float weight)

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

Calls MR_QuadraticForm3f_addDistToOrigin().

◆ addDistToPlane() [1/2]

void meshlib.QuadraticForm3f.addDistToPlane ( meshlib.Vector3f planeUnitNormal)

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

Calls MR_QuadraticForm3f_addDistToPlane_1().

◆ addDistToPlane() [2/2]

void meshlib.QuadraticForm3f.addDistToPlane ( meshlib.Vector3f planeUnitNormal,
float weight )

Generated from method MR::QuadraticForm3f::addDistToPlane.

Calls MR_QuadraticForm3f_addDistToPlane_2().

◆ assignFromAnother()

meshlib.QuadraticForm3f meshlib.QuadraticForm3f.assignFromAnother ( meshlib.QuadraticForm3f _other)

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

Calls MR_QuadraticForm3f_AssignFromAnother().

◆ c()

float meshlib.QuadraticForm3f.c ( )

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

Calls MR_QuadraticForm3f_Get_c().

◆ eval()

float meshlib.QuadraticForm3f.eval ( meshlib.Vector3f x)

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

Calls MR_QuadraticForm3f_eval().

◆ setA()

void meshlib.QuadraticForm3f.setA ( meshlib.SymMatrix3f value)

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

Calls MR_QuadraticForm3f_Set_A().

◆ setC()

void meshlib.QuadraticForm3f.setC ( float value)

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

Calls MR_QuadraticForm3f_Set_c().


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