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

Public Member Functions

 QuadraticForm2d (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 QuadraticForm2d ()
 QuadraticForm2d (meshlib.SymMatrix2d A, double c)
 QuadraticForm2d (meshlib.QuadraticForm2d _other)
meshlib.QuadraticForm2d assignFromAnother (meshlib.QuadraticForm2d _other)
double eval (meshlib.Vector2d x)
void addDistToOrigin (double weight)
void addDistToPlane (meshlib.Vector2d planeUnitNormal)
void addDistToPlane (meshlib.Vector2d planeUnitNormal, double weight)
void addDistToLine (meshlib.Vector2d lineUnitDir)
void addDistToLine (meshlib.Vector2d lineUnitDir, double weight)
meshlib.SymMatrix2d A ()
void setA (meshlib.SymMatrix2d value)
double c ()
void setC (double 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::QuadraticForm2d.

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

Constructor & Destructor Documentation

◆ QuadraticForm2d() [1/4]

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

◆ QuadraticForm2d() [2/4]

meshlib.QuadraticForm2d.QuadraticForm2d ( )

Constructs an empty (default-constructed) instance.

Calls MR_QuadraticForm2d_DefaultConstruct().

◆ QuadraticForm2d() [3/4]

meshlib.QuadraticForm2d.QuadraticForm2d ( meshlib.SymMatrix2d A,
double c )

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

Calls MR_QuadraticForm2d_ConstructFrom().

◆ QuadraticForm2d() [4/4]

meshlib.QuadraticForm2d.QuadraticForm2d ( meshlib.QuadraticForm2d _other)

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

Calls MR_QuadraticForm2d_ConstructFromAnother().

Member Function Documentation

◆ A()

meshlib.SymMatrix2d meshlib.QuadraticForm2d.A ( )

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

Calls MR_QuadraticForm2d_Get_A().

◆ addDistToLine() [1/2]

void meshlib.QuadraticForm2d.addDistToLine ( meshlib.Vector2d lineUnitDir)

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

Calls MR_QuadraticForm2d_addDistToLine_1().

◆ addDistToLine() [2/2]

void meshlib.QuadraticForm2d.addDistToLine ( meshlib.Vector2d lineUnitDir,
double weight )

Generated from method MR::QuadraticForm2d::addDistToLine.

Calls MR_QuadraticForm2d_addDistToLine_2().

◆ addDistToOrigin()

void meshlib.QuadraticForm2d.addDistToOrigin ( double weight)

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

Calls MR_QuadraticForm2d_addDistToOrigin().

◆ addDistToPlane() [1/2]

void meshlib.QuadraticForm2d.addDistToPlane ( meshlib.Vector2d planeUnitNormal)

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

Calls MR_QuadraticForm2d_addDistToPlane_1().

◆ addDistToPlane() [2/2]

void meshlib.QuadraticForm2d.addDistToPlane ( meshlib.Vector2d planeUnitNormal,
double weight )

Generated from method MR::QuadraticForm2d::addDistToPlane.

Calls MR_QuadraticForm2d_addDistToPlane_2().

◆ assignFromAnother()

meshlib.QuadraticForm2d meshlib.QuadraticForm2d.assignFromAnother ( meshlib.QuadraticForm2d _other)

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

Calls MR_QuadraticForm2d_AssignFromAnother().

◆ c()

double meshlib.QuadraticForm2d.c ( )

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

Calls MR_QuadraticForm2d_Get_c().

◆ eval()

double meshlib.QuadraticForm2d.eval ( meshlib.Vector2d x)

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

Calls MR_QuadraticForm2d_eval().

◆ setA()

void meshlib.QuadraticForm2d.setA ( meshlib.SymMatrix2d value)

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

Calls MR_QuadraticForm2d_Set_A().

◆ setC()

void meshlib.QuadraticForm2d.setC ( double value)

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

Calls MR_QuadraticForm2d_Set_c().


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