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

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ QuadraticForm3d() [1/4]

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

◆ QuadraticForm3d() [2/4]

meshlib.QuadraticForm3d.QuadraticForm3d ( )

Constructs an empty (default-constructed) instance.

Calls MR_QuadraticForm3d_DefaultConstruct().

◆ QuadraticForm3d() [3/4]

meshlib.QuadraticForm3d.QuadraticForm3d ( meshlib.SymMatrix3d A,
double c )

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

Calls MR_QuadraticForm3d_ConstructFrom().

◆ QuadraticForm3d() [4/4]

meshlib.QuadraticForm3d.QuadraticForm3d ( meshlib.QuadraticForm3d _other)

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

Calls MR_QuadraticForm3d_ConstructFromAnother().

Member Function Documentation

◆ A()

meshlib.SymMatrix3d meshlib.QuadraticForm3d.A ( )

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

Calls MR_QuadraticForm3d_Get_A().

◆ addDistToLine() [1/2]

void meshlib.QuadraticForm3d.addDistToLine ( meshlib.Vector3d lineUnitDir)

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

Calls MR_QuadraticForm3d_addDistToLine_1().

◆ addDistToLine() [2/2]

void meshlib.QuadraticForm3d.addDistToLine ( meshlib.Vector3d lineUnitDir,
double weight )

Generated from method MR::QuadraticForm3d::addDistToLine.

Calls MR_QuadraticForm3d_addDistToLine_2().

◆ addDistToOrigin()

void meshlib.QuadraticForm3d.addDistToOrigin ( double weight)

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

Calls MR_QuadraticForm3d_addDistToOrigin().

◆ addDistToPlane() [1/2]

void meshlib.QuadraticForm3d.addDistToPlane ( meshlib.Vector3d planeUnitNormal)

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

Calls MR_QuadraticForm3d_addDistToPlane_1().

◆ addDistToPlane() [2/2]

void meshlib.QuadraticForm3d.addDistToPlane ( meshlib.Vector3d planeUnitNormal,
double weight )

Generated from method MR::QuadraticForm3d::addDistToPlane.

Calls MR_QuadraticForm3d_addDistToPlane_2().

◆ assignFromAnother()

meshlib.QuadraticForm3d meshlib.QuadraticForm3d.assignFromAnother ( meshlib.QuadraticForm3d _other)

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

Calls MR_QuadraticForm3d_AssignFromAnother().

◆ c()

double meshlib.QuadraticForm3d.c ( )

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

Calls MR_QuadraticForm3d_Get_c().

◆ eval()

double meshlib.QuadraticForm3d.eval ( meshlib.Vector3d x)

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

Calls MR_QuadraticForm3d_eval().

◆ setA()

void meshlib.QuadraticForm3d.setA ( meshlib.SymMatrix3d value)

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

Calls MR_QuadraticForm3d_Set_A().

◆ setC()

void meshlib.QuadraticForm3d.setC ( double value)

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

Calls MR_QuadraticForm3d_Set_c().


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