MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::Matrix3_unsigned_char Struct Reference
Inheritance diagram for meshlib::Matrix3_unsigned_char:

Public Member Functions

auto assign_from_another (_other:&meshlib::Matrix3_unsigned_char) -> &mut meshlib::Matrix3_unsigned_char
auto index (row:core::ffi::c_int) const -> &meshlib::Vector3_unsigned_char
auto index_mut (row:core::ffi::c_int) -> &mut meshlib::Vector3_unsigned_char
auto col (i:core::ffi::c_int) const -> meshlib::Owned< meshlib::Vector3_unsigned_char >
auto trace () const -> core::ffi::c_uchar
auto norm_sq () const -> core::ffi::c_uchar
auto norm () const -> f64
auto det () const -> core::ffi::c_uchar
auto transposed () const -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
auto x () const -> &meshlib::Vector3_unsigned_char
auto x_mut () -> &mut meshlib::Vector3_unsigned_char
void set_x (value:&meshlib::Vector3_unsigned_char)
auto y () const -> &meshlib::Vector3_unsigned_char
auto y_mut () -> &mut meshlib::Vector3_unsigned_char
void set_y (value:&meshlib::Vector3_unsigned_char)
auto z () const -> &meshlib::Vector3_unsigned_char
auto z_mut () -> &mut meshlib::Vector3_unsigned_char
void set_z (value:&meshlib::Vector3_unsigned_char)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto construct_from_another (_other:&meshlib::Matrix3_unsigned_char) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto construct (x:&meshlib::Vector3_unsigned_char, y:&meshlib::Vector3_unsigned_char, z:&meshlib::Vector3_unsigned_char) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto zero () -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto identity () -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto scale_1_unsigned_char (s:core::ffi::c_uchar) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto scale_3 (sx:core::ffi::c_uchar, sy:core::ffi::c_uchar, sz:core::ffi::c_uchar) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto scale_1_mr_vector3_unsigned_char (s:&meshlib::Vector3_unsigned_char) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto from_rows (x:&meshlib::Vector3_unsigned_char, y:&meshlib::Vector3_unsigned_char, z:&meshlib::Vector3_unsigned_char) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static auto from_columns (x:&meshlib::Vector3_unsigned_char, y:&meshlib::Vector3_unsigned_char, z:&meshlib::Vector3_unsigned_char) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
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

arbitrary 3x3 matrix Generated from class MR::Matrix3<unsigned char>.

Generated from class MR::Matrix3<unsigned char>. Heap-allocated instances are held in Owned<Matrix3_unsigned_char>.

Member Function Documentation

◆ assign_from_another()

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

Generated from method MR::Matrix3<unsigned char>::operator=.

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

◆ col()

auto meshlib::Matrix3_unsigned_char::col ( i:core::ffi::c_int ) const -> meshlib::Owned< meshlib::Vector3_unsigned_char >

column access Generated from method MR::Matrix3<unsigned char>::col.

Calls MR_Matrix3_unsigned_char_col().

◆ construct()

initializes matrix from its 3 rows Generated from constructor MR::Matrix3<unsigned char>::Matrix3.

Calls MR_Matrix3_unsigned_char_Construct(). The reference to the parameter x might be preserved in the constructed object. The reference to the parameter y might be preserved in the constructed object. The reference to the parameter z might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::Matrix3<unsigned char>::Matrix3.

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

◆ det()

auto meshlib::Matrix3_unsigned_char::det ( ) const -> core::ffi::c_uchar

computes determinant of the matrix Generated from method MR::Matrix3<unsigned char>::det.

Calls MR_Matrix3_unsigned_char_det().

◆ from_columns()

constructs a matrix from its 3 columns; use this method to get the matrix that transforms basis vectors ( plusX, plusY, plusZ ) into vectors ( x, y, z ) respectively Generated from method MR::Matrix3<unsigned char>::fromColumns.

Calls MR_Matrix3_unsigned_char_fromColumns().

◆ from_rows()

constructs a matrix from its 3 rows Generated from method MR::Matrix3<unsigned char>::fromRows.

Calls MR_Matrix3_unsigned_char_fromRows().

◆ identity()

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

Generated from method MR::Matrix3<unsigned char>::identity.

Calls MR_Matrix3_unsigned_char_identity().

◆ index()

auto meshlib::Matrix3_unsigned_char::index ( row:core::ffi::c_int ) const -> &meshlib::Vector3_unsigned_char

row access Generated from method MR::Matrix3<unsigned char>::operator[].

Calls MR_Matrix3_unsigned_char_index().

◆ index_mut()

auto meshlib::Matrix3_unsigned_char::index_mut ( row:core::ffi::c_int ) -> &mut meshlib::Vector3_unsigned_char

Generated from method MR::Matrix3<unsigned char>::operator[].

Calls MR_Matrix3_unsigned_char_index_mut().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Matrix3_unsigned_char_DefaultConstruct().

◆ norm()

auto meshlib::Matrix3_unsigned_char::norm ( ) const -> f64

Generated from method MR::Matrix3<unsigned char>::norm.

Calls MR_Matrix3_unsigned_char_norm().

◆ norm_sq()

auto meshlib::Matrix3_unsigned_char::norm_sq ( ) const -> core::ffi::c_uchar

compute sum of squared matrix elements Generated from method MR::Matrix3<unsigned char>::normSq.

Calls MR_Matrix3_unsigned_char_normSq().

◆ scale_1_mr_vector3_unsigned_char()

auto meshlib::Matrix3_unsigned_char::scale_1_mr_vector3_unsigned_char ( s:&meshlib::Vector3_unsigned_char ) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static

Generated from method MR::Matrix3<unsigned char>::scale.

Calls MR_Matrix3_unsigned_char_scale_1_MR_Vector3_unsigned_char().

◆ scale_1_unsigned_char()

auto meshlib::Matrix3_unsigned_char::scale_1_unsigned_char ( s:core::ffi::c_uchar ) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static

returns a matrix that scales uniformly Generated from method MR::Matrix3<unsigned char>::scale.

Calls MR_Matrix3_unsigned_char_scale_1_unsigned_char().

◆ scale_3()

auto meshlib::Matrix3_unsigned_char::scale_3 ( sx:core::ffi::c_uchar ,
sy:core::ffi::c_uchar ,
sz:core::ffi::c_uchar  ) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static

returns a matrix that has its own scale along each axis Generated from method MR::Matrix3<unsigned char>::scale.

Calls MR_Matrix3_unsigned_char_scale_3().

◆ set_x()

void meshlib::Matrix3_unsigned_char::set_x ( value:&meshlib::Vector3_unsigned_char )

rows, identity matrix by default Modifies a member variable of class MR::Matrix3<unsigned char> named x.

Calls MR_Matrix3_unsigned_char_Set_x(). The reference to the parameter value might be preserved in this object in element x.

◆ set_y()

void meshlib::Matrix3_unsigned_char::set_y ( value:&meshlib::Vector3_unsigned_char )

Modifies a member variable of class MR::Matrix3<unsigned char> named y.

Calls MR_Matrix3_unsigned_char_Set_y(). The reference to the parameter value might be preserved in this object in element y.

◆ set_z()

void meshlib::Matrix3_unsigned_char::set_z ( value:&meshlib::Vector3_unsigned_char )

Modifies a member variable of class MR::Matrix3<unsigned char> named z.

Calls MR_Matrix3_unsigned_char_Set_z(). The reference to the parameter value might be preserved in this object in element z.

◆ trace()

auto meshlib::Matrix3_unsigned_char::trace ( ) const -> core::ffi::c_uchar

computes trace of the matrix Generated from method MR::Matrix3<unsigned char>::trace.

Calls MR_Matrix3_unsigned_char_trace().

◆ transposed()

auto meshlib::Matrix3_unsigned_char::transposed ( ) const -> meshlib::Owned< meshlib::Matrix3_unsigned_char >

computes transposed matrix Generated from method MR::Matrix3<unsigned char>::transposed.

Calls MR_Matrix3_unsigned_char_transposed().

◆ x()

auto meshlib::Matrix3_unsigned_char::x ( ) const -> &meshlib::Vector3_unsigned_char

rows, identity matrix by default Returns a pointer to a member variable of class MR::Matrix3<unsigned char> named x.

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

◆ x_mut()

auto meshlib::Matrix3_unsigned_char::x_mut ( ) -> &mut meshlib::Vector3_unsigned_char

rows, identity matrix by default Returns a mutable pointer to a member variable of class MR::Matrix3<unsigned char> named x.

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

◆ y()

auto meshlib::Matrix3_unsigned_char::y ( ) const -> &meshlib::Vector3_unsigned_char

Returns a pointer to a member variable of class MR::Matrix3<unsigned char> named y.

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

◆ y_mut()

auto meshlib::Matrix3_unsigned_char::y_mut ( ) -> &mut meshlib::Vector3_unsigned_char

Returns a mutable pointer to a member variable of class MR::Matrix3<unsigned char> named y.

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

◆ z()

auto meshlib::Matrix3_unsigned_char::z ( ) const -> &meshlib::Vector3_unsigned_char

Returns a pointer to a member variable of class MR::Matrix3<unsigned char> named z.

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

◆ z_mut()

auto meshlib::Matrix3_unsigned_char::z_mut ( ) -> &mut meshlib::Vector3_unsigned_char

Returns a mutable pointer to a member variable of class MR::Matrix3<unsigned char> named z.

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

◆ zero()

auto meshlib::Matrix3_unsigned_char::zero ( ) -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
static

Generated from method MR::Matrix3<unsigned char>::zero.

Calls MR_Matrix3_unsigned_char_zero().


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