MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.SymMatrix2f:

Public Member Functions

 SymMatrix2f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SymMatrix2f ()
 SymMatrix2f (meshlib.SymMatrix2f _other)
meshlib.SymMatrix2f assignFromAnother (meshlib.SymMatrix2f _other)
float trace ()
float normSq ()
float det ()
meshlib.SymMatrix2f inverse ()
meshlib.SymMatrix2f inverse (float det)
meshlib.SymMatrix2f add_assign (meshlib.SymMatrix2f b)
meshlib.SymMatrix2f sub_assign (meshlib.SymMatrix2f b)
meshlib.SymMatrix2f mul_assign (float b)
meshlib.SymMatrix2f div_assign (float b)
meshlib.Vector2f eigens (meshlib.Matrix2f eigenvectors)
meshlib.Vector2f eigenvector (float eigenvalue)
meshlib.Vector2f maxEigenvector ()
meshlib.SymMatrix2f pseudoinverse (java.lang.Float tol, meshlib.int_output rank, meshlib.Vector2f space)
float xx ()
void setXx (float value)
float xy ()
void setXy (float value)
float yy ()
void setYy (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 ()

Static Public Member Functions

static meshlib.SymMatrix2f identity ()
static meshlib.SymMatrix2f diagonal (float diagVal)

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

symmetric 2x2 matrix Generated from class MR::SymMatrix2f.

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

Constructor & Destructor Documentation

◆ SymMatrix2f() [1/3]

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

◆ SymMatrix2f() [2/3]

meshlib.SymMatrix2f.SymMatrix2f ( )

Constructs an empty (default-constructed) instance.

Calls MR_SymMatrix2f_DefaultConstruct().

◆ SymMatrix2f() [3/3]

meshlib.SymMatrix2f.SymMatrix2f ( meshlib.SymMatrix2f _other)

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

Calls MR_SymMatrix2f_ConstructFromAnother().

Member Function Documentation

◆ add_assign()

meshlib.SymMatrix2f meshlib.SymMatrix2f.add_assign ( meshlib.SymMatrix2f b)

Generated from method MR::SymMatrix2f::operator+=. The reference to this object might be preserved in the return value.

Calls MR_SymMatrix2f_add_assign().

◆ assignFromAnother()

meshlib.SymMatrix2f meshlib.SymMatrix2f.assignFromAnother ( meshlib.SymMatrix2f _other)

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

Calls MR_SymMatrix2f_AssignFromAnother().

◆ det()

float meshlib.SymMatrix2f.det ( )

computes determinant of the matrix Generated from method MR::SymMatrix2f::det.

Calls MR_SymMatrix2f_det().

◆ diagonal()

meshlib.SymMatrix2f meshlib.SymMatrix2f.diagonal ( float diagVal)
static

Generated from method MR::SymMatrix2f::diagonal.

Calls MR_SymMatrix2f_diagonal().

◆ div_assign()

meshlib.SymMatrix2f meshlib.SymMatrix2f.div_assign ( float b)

Generated from method MR::SymMatrix2f::operator/=. The reference to this object might be preserved in the return value.

Calls MR_SymMatrix2f_div_assign().

◆ eigens()

meshlib.Vector2f meshlib.SymMatrix2f.eigens ( meshlib.Matrix2f eigenvectors)

returns eigenvalues of the matrix in ascending order (diagonal matrix L), and optionally returns corresponding unit eigenvectors in the rows of orthogonal matrix V, M*V^T = V^T*L; M = V^T*L*V Generated from method MR::SymMatrix2f::eigens.

Calls MR_SymMatrix2f_eigens().

◆ eigenvector()

meshlib.Vector2f meshlib.SymMatrix2f.eigenvector ( float eigenvalue)

computes not-unit eigenvector corresponding to a not-repeating eigenvalue Generated from method MR::SymMatrix2f::eigenvector.

Calls MR_SymMatrix2f_eigenvector().

◆ identity()

meshlib.SymMatrix2f meshlib.SymMatrix2f.identity ( )
static

Generated from method MR::SymMatrix2f::identity.

Calls MR_SymMatrix2f_identity().

◆ inverse() [1/2]

meshlib.SymMatrix2f meshlib.SymMatrix2f.inverse ( )

computes inverse matrix Generated from method MR::SymMatrix2f::inverse.

Calls MR_SymMatrix2f_inverse_0().

◆ inverse() [2/2]

meshlib.SymMatrix2f meshlib.SymMatrix2f.inverse ( float det)

computes inverse matrix given determinant of this Generated from method MR::SymMatrix2f::inverse.

Calls MR_SymMatrix2f_inverse_1().

◆ maxEigenvector()

meshlib.Vector2f meshlib.SymMatrix2f.maxEigenvector ( )

computes not-unit eigenvector corresponding to maximum eigenvalue Generated from method MR::SymMatrix2f::maxEigenvector.

Calls MR_SymMatrix2f_maxEigenvector().

◆ mul_assign()

meshlib.SymMatrix2f meshlib.SymMatrix2f.mul_assign ( float b)

Generated from method MR::SymMatrix2f::operator*=. The reference to this object might be preserved in the return value.

Calls MR_SymMatrix2f_mul_assign().

◆ normSq()

float meshlib.SymMatrix2f.normSq ( )

computes the squared norm of the matrix, which is equal to the sum of 4 squared elements Generated from method MR::SymMatrix2f::normSq.

Calls MR_SymMatrix2f_normSq().

◆ pseudoinverse()

meshlib.SymMatrix2f meshlib.SymMatrix2f.pseudoinverse ( java.lang.Float tol,
meshlib.int_output rank,
meshlib.Vector2f space )

for not-degenerate matrix returns just inverse matrix, otherwise returns degenerate matrix, which performs inversion on not-kernel subspace;

Parameters
tolrelative epsilon-tolerance for too small number detection
rankoptional output for this matrix rank according to given tolerance
spacerank=1: unit direction of solution line, rank=2: zero vector Generated from method MR::SymMatrix2f::pseudoinverse.

Calls MR_SymMatrix2f_pseudoinverse().

◆ setXx()

void meshlib.SymMatrix2f.setXx ( float value)

zero matrix by default Modifies a member variable of class MR::SymMatrix2f named xx.

Calls MR_SymMatrix2f_Set_xx().

◆ setXy()

void meshlib.SymMatrix2f.setXy ( float value)

zero matrix by default Modifies a member variable of class MR::SymMatrix2f named xy.

Calls MR_SymMatrix2f_Set_xy().

◆ setYy()

void meshlib.SymMatrix2f.setYy ( float value)

zero matrix by default Modifies a member variable of class MR::SymMatrix2f named yy.

Calls MR_SymMatrix2f_Set_yy().

◆ sub_assign()

meshlib.SymMatrix2f meshlib.SymMatrix2f.sub_assign ( meshlib.SymMatrix2f b)

Generated from method MR::SymMatrix2f::operator-=. The reference to this object might be preserved in the return value.

Calls MR_SymMatrix2f_sub_assign().

◆ trace()

float meshlib.SymMatrix2f.trace ( )

computes trace of the matrix Generated from method MR::SymMatrix2f::trace.

Calls MR_SymMatrix2f_trace().

◆ xx()

float meshlib.SymMatrix2f.xx ( )

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2f named xx. The reference to this object might be preserved as the return value.

Calls MR_SymMatrix2f_Get_xx().

◆ xy()

float meshlib.SymMatrix2f.xy ( )

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2f named xy. The reference to this object might be preserved as the return value.

Calls MR_SymMatrix2f_Get_xy().

◆ yy()

float meshlib.SymMatrix2f.yy ( )

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2f named yy. The reference to this object might be preserved as the return value.

Calls MR_SymMatrix2f_Get_yy().


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