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

Public Member Functions

auto assign_from_another (_other:&meshlib::SymMatrix2f) -> &mut meshlib::SymMatrix2f
auto trace () const -> f32
auto norm_sq () const -> f32
auto det () const -> f32
auto inverse_0 () const -> meshlib::Owned< meshlib::SymMatrix2f >
auto inverse_1 (det:f32) const -> meshlib::Owned< meshlib::SymMatrix2f >
auto add_assign (b:&meshlib::SymMatrix2f) -> &mut meshlib::SymMatrix2f
auto sub_assign (b:&meshlib::SymMatrix2f) -> &mut meshlib::SymMatrix2f
auto mul_assign (b:f32) -> &mut meshlib::SymMatrix2f
auto div_assign (b:f32) -> &mut meshlib::SymMatrix2f
auto eigens (eigenvectors:Option<&mut meshlib::Matrix2f >) const -> meshlib::Vector2f
auto eigenvector (eigenvalue:f32) const -> meshlib::Vector2f
auto max_eigenvector () const -> meshlib::Vector2f
auto pseudoinverse (tol:Option< f32 >, rank:Option<&mut core::ffi::c_int >, space:Option<&mut meshlib::Vector2f >) const -> meshlib::Owned< meshlib::SymMatrix2f >
auto xx () const -> &f32
auto xx_mut () -> &mut f32
void set_xx (value:f32)
auto xy () const -> &f32
auto xy_mut () -> &mut f32
void set_xy (value:f32)
auto yy () const -> &f32
auto yy_mut () -> &mut f32
void set_yy (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SymMatrix2f >
static auto construct_from_another (_other:&meshlib::SymMatrix2f) -> meshlib::Owned< meshlib::SymMatrix2f >
static auto identity () -> meshlib::Owned< meshlib::SymMatrix2f >
static auto diagonal (diagVal:f32) -> meshlib::Owned< meshlib::SymMatrix2f >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

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

Generated from class MR::SymMatrix2f. Heap-allocated instances are held in Owned<SymMatrix2f>.

Member Function Documentation

◆ add_assign()

auto meshlib::SymMatrix2f::add_assign ( b:&meshlib::SymMatrix2f ) -> &mut meshlib::SymMatrix2f

Generated from method MR::SymMatrix2f::operator+=.

Calls MR_SymMatrix2f_add_assign(). The reference to this object might be preserved in the return value.

◆ assign_from_another()

auto meshlib::SymMatrix2f::assign_from_another ( _other:&meshlib::SymMatrix2f ) -> &mut meshlib::SymMatrix2f

Generated from method MR::SymMatrix2f::operator=.

Calls MR_SymMatrix2f_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from_another()

auto meshlib::SymMatrix2f::construct_from_another ( _other:&meshlib::SymMatrix2f ) -> meshlib::Owned< meshlib::SymMatrix2f >
static

Generated from constructor MR::SymMatrix2f::SymMatrix2f.

Calls MR_SymMatrix2f_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ det()

auto meshlib::SymMatrix2f::det ( ) const -> f32

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

Calls MR_SymMatrix2f_det().

◆ diagonal()

auto meshlib::SymMatrix2f::diagonal ( diagVal:f32 ) -> meshlib::Owned< meshlib::SymMatrix2f >
static

Generated from method MR::SymMatrix2f::diagonal.

Calls MR_SymMatrix2f_diagonal().

◆ div_assign()

auto meshlib::SymMatrix2f::div_assign ( b:f32 ) -> &mut meshlib::SymMatrix2f

Generated from method MR::SymMatrix2f::operator/=.

Calls MR_SymMatrix2f_div_assign(). The reference to this object might be preserved in the return value.

◆ eigens()

auto meshlib::SymMatrix2f::eigens ( eigenvectors:Option<&mut meshlib::Matrix2f > ) const -> meshlib::Vector2f

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()

auto meshlib::SymMatrix2f::eigenvector ( eigenvalue:f32 ) const -> meshlib::Vector2f

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

Calls MR_SymMatrix2f_eigenvector().

◆ identity()

auto meshlib::SymMatrix2f::identity ( ) -> meshlib::Owned< meshlib::SymMatrix2f >
static

Generated from method MR::SymMatrix2f::identity.

Calls MR_SymMatrix2f_identity().

◆ inverse_0()

auto meshlib::SymMatrix2f::inverse_0 ( ) const -> meshlib::Owned< meshlib::SymMatrix2f >

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

Calls MR_SymMatrix2f_inverse_0().

◆ inverse_1()

auto meshlib::SymMatrix2f::inverse_1 ( det:f32 ) const -> meshlib::Owned< meshlib::SymMatrix2f >

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

Calls MR_SymMatrix2f_inverse_1().

◆ max_eigenvector()

auto meshlib::SymMatrix2f::max_eigenvector ( ) const -> meshlib::Vector2f

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

Calls MR_SymMatrix2f_maxEigenvector().

◆ mul_assign()

auto meshlib::SymMatrix2f::mul_assign ( b:f32 ) -> &mut meshlib::SymMatrix2f

Generated from method MR::SymMatrix2f::operator*=.

Calls MR_SymMatrix2f_mul_assign(). The reference to this object might be preserved in the return value.

◆ new()

auto meshlib::SymMatrix2f::new ( ) -> meshlib::Owned< meshlib::SymMatrix2f >
static

Constructs an empty (default-constructed) instance.

Calls MR_SymMatrix2f_DefaultConstruct().

◆ norm_sq()

auto meshlib::SymMatrix2f::norm_sq ( ) const -> f32

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()

auto meshlib::SymMatrix2f::pseudoinverse ( tol:Option< f32 > ,
rank:Option<&mut core::ffi::c_int > ,
space:Option<&mut meshlib::Vector2f >  ) const -> meshlib::Owned< meshlib::SymMatrix2f >

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().

◆ set_xx()

void meshlib::SymMatrix2f::set_xx ( value:f32 )

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

Calls MR_SymMatrix2f_Set_xx().

◆ set_xy()

void meshlib::SymMatrix2f::set_xy ( value:f32 )

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

Calls MR_SymMatrix2f_Set_xy().

◆ set_yy()

void meshlib::SymMatrix2f::set_yy ( value:f32 )

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

Calls MR_SymMatrix2f_Set_yy().

◆ sub_assign()

auto meshlib::SymMatrix2f::sub_assign ( b:&meshlib::SymMatrix2f ) -> &mut meshlib::SymMatrix2f

Generated from method MR::SymMatrix2f::operator-=.

Calls MR_SymMatrix2f_sub_assign(). The reference to this object might be preserved in the return value.

◆ trace()

auto meshlib::SymMatrix2f::trace ( ) const -> f32

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

Calls MR_SymMatrix2f_trace().

◆ xx()

auto meshlib::SymMatrix2f::xx ( ) const -> &f32

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2f named xx.

Calls MR_SymMatrix2f_Get_xx(). The reference to this object might be preserved as the return value.

◆ xx_mut()

auto meshlib::SymMatrix2f::xx_mut ( ) -> &mut f32

zero matrix by default Returns a mutable pointer to a member variable of class MR::SymMatrix2f named xx.

Calls MR_SymMatrix2f_GetMutable_xx(). The reference to this object might be preserved as the return value.

◆ xy()

auto meshlib::SymMatrix2f::xy ( ) const -> &f32

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2f named xy.

Calls MR_SymMatrix2f_Get_xy(). The reference to this object might be preserved as the return value.

◆ xy_mut()

auto meshlib::SymMatrix2f::xy_mut ( ) -> &mut f32

zero matrix by default Returns a mutable pointer to a member variable of class MR::SymMatrix2f named xy.

Calls MR_SymMatrix2f_GetMutable_xy(). The reference to this object might be preserved as the return value.

◆ yy()

auto meshlib::SymMatrix2f::yy ( ) const -> &f32

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2f named yy.

Calls MR_SymMatrix2f_Get_yy(). The reference to this object might be preserved as the return value.

◆ yy_mut()

auto meshlib::SymMatrix2f::yy_mut ( ) -> &mut f32

zero matrix by default Returns a mutable pointer to a member variable of class MR::SymMatrix2f named yy.

Calls MR_SymMatrix2f_GetMutable_yy(). The reference to this object might be preserved as the return value.


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