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

Public Member Functions

auto assign_from_another (_other:&meshlib::Matrix4_unsigned_char) -> &mut meshlib::Matrix4_unsigned_char
auto call (row:core::ffi::c_int, col:core::ffi::c_int) const -> &core::ffi::c_uchar
auto call_mut (row:core::ffi::c_int, col:core::ffi::c_int) -> &mut core::ffi::c_uchar
auto index (row:core::ffi::c_int) const -> &meshlib::Vector4_unsigned_char
auto index_mut (row:core::ffi::c_int) -> &mut meshlib::Vector4_unsigned_char
auto col (i:core::ffi::c_int) const -> meshlib::Owned< meshlib::Vector4_unsigned_char >
auto trace () const -> core::ffi::c_uchar
auto norm_sq () const -> core::ffi::c_uchar
auto norm () const -> f64
auto submatrix3 (i:core::ffi::c_int, j:core::ffi::c_int) const -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
auto det () const -> core::ffi::c_uchar
auto transposed () const -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
auto get_rotation () const -> meshlib::Owned< meshlib::Matrix3_unsigned_char >
void set_rotation (rot:&meshlib::Matrix3_unsigned_char)
auto get_translation () const -> meshlib::Owned< meshlib::Vector3_unsigned_char >
void set_translation (t:&meshlib::Vector3_unsigned_char)
auto data_mut () -> Option<&mut core::ffi::c_uchar >
auto data () const -> Option<&core::ffi::c_uchar >
auto x () const -> &meshlib::Vector4_unsigned_char
auto x_mut () -> &mut meshlib::Vector4_unsigned_char
void set_x (value:&meshlib::Vector4_unsigned_char)
auto y () const -> &meshlib::Vector4_unsigned_char
auto y_mut () -> &mut meshlib::Vector4_unsigned_char
void set_y (value:&meshlib::Vector4_unsigned_char)
auto z () const -> &meshlib::Vector4_unsigned_char
auto z_mut () -> &mut meshlib::Vector4_unsigned_char
void set_z (value:&meshlib::Vector4_unsigned_char)
auto w () const -> &meshlib::Vector4_unsigned_char
auto w_mut () -> &mut meshlib::Vector4_unsigned_char
void set_w (value:&meshlib::Vector4_unsigned_char)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
static auto construct_from_another (_other:&meshlib::Matrix4_unsigned_char) -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
static auto construct_4 (x:&meshlib::Vector4_unsigned_char, y:&meshlib::Vector4_unsigned_char, z:&meshlib::Vector4_unsigned_char, w:&meshlib::Vector4_unsigned_char) -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
static auto construct_2 (r:&meshlib::Matrix3_unsigned_char, t:&meshlib::Vector3_unsigned_char) -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
static auto zero () -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
static auto identity () -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
static auto scale (s:core::ffi::c_uchar) -> meshlib::Owned< meshlib::Matrix4_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 4x4 matrix Generated from class MR::Matrix4<unsigned char>.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ call()

auto meshlib::Matrix4_unsigned_char::call ( row:core::ffi::c_int ,
col:core::ffi::c_int  ) const -> &core::ffi::c_uchar

element access Generated from method MR::Matrix4<unsigned char>::operator().

Calls MR_Matrix4_unsigned_char_call().

◆ call_mut()

auto meshlib::Matrix4_unsigned_char::call_mut ( row:core::ffi::c_int ,
col:core::ffi::c_int  ) -> &mut core::ffi::c_uchar

Generated from method MR::Matrix4<unsigned char>::operator().

Calls MR_Matrix4_unsigned_char_call_mut().

◆ col()

auto meshlib::Matrix4_unsigned_char::col ( i:core::ffi::c_int ) const -> meshlib::Owned< meshlib::Vector4_unsigned_char >

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

Calls MR_Matrix4_unsigned_char_col().

◆ construct_2()

auto meshlib::Matrix4_unsigned_char::construct_2 ( r:&meshlib::Matrix3_unsigned_char ,
t:&meshlib::Vector3_unsigned_char  ) -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
static

construct from rotation matrix and translation vector Generated from constructor MR::Matrix4<unsigned char>::Matrix4.

Calls MR_Matrix4_unsigned_char_Construct_2(). The reference to the parameter r might be preserved in the constructed object. The reference to the parameter t might be preserved in the constructed object.

◆ construct_4()

initializes matrix from 4 row-vectors Generated from constructor MR::Matrix4<unsigned char>::Matrix4.

Calls MR_Matrix4_unsigned_char_Construct_4(). 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. The reference to the parameter w might be preserved in the constructed object.

◆ construct_from_another()

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

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

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

◆ data()

auto meshlib::Matrix4_unsigned_char::data ( ) const -> Option<&core::ffi::c_uchar >

Generated from method MR::Matrix4<unsigned char>::data.

Calls MR_Matrix4_unsigned_char_data().

◆ data_mut()

auto meshlib::Matrix4_unsigned_char::data_mut ( ) -> Option<&mut core::ffi::c_uchar >

Generated from method MR::Matrix4<unsigned char>::data.

Calls MR_Matrix4_unsigned_char_data_mut().

◆ det()

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

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

Calls MR_Matrix4_unsigned_char_det().

◆ get_rotation()

auto meshlib::Matrix4_unsigned_char::get_rotation ( ) const -> meshlib::Owned< meshlib::Matrix3_unsigned_char >

Generated from method MR::Matrix4<unsigned char>::getRotation.

Calls MR_Matrix4_unsigned_char_getRotation().

◆ get_translation()

auto meshlib::Matrix4_unsigned_char::get_translation ( ) const -> meshlib::Owned< meshlib::Vector3_unsigned_char >

Generated from method MR::Matrix4<unsigned char>::getTranslation.

Calls MR_Matrix4_unsigned_char_getTranslation().

◆ identity()

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

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

Calls MR_Matrix4_unsigned_char_identity().

◆ index()

auto meshlib::Matrix4_unsigned_char::index ( row:core::ffi::c_int ) const -> &meshlib::Vector4_unsigned_char

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

Calls MR_Matrix4_unsigned_char_index().

◆ index_mut()

auto meshlib::Matrix4_unsigned_char::index_mut ( row:core::ffi::c_int ) -> &mut meshlib::Vector4_unsigned_char

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

Calls MR_Matrix4_unsigned_char_index_mut().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Matrix4_unsigned_char_DefaultConstruct().

◆ norm()

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

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

Calls MR_Matrix4_unsigned_char_norm().

◆ norm_sq()

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

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

Calls MR_Matrix4_unsigned_char_normSq().

◆ scale()

auto meshlib::Matrix4_unsigned_char::scale ( s:core::ffi::c_uchar ) -> meshlib::Owned< meshlib::Matrix4_unsigned_char >
static

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

Calls MR_Matrix4_unsigned_char_scale().

◆ set_rotation()

void meshlib::Matrix4_unsigned_char::set_rotation ( rot:&meshlib::Matrix3_unsigned_char )

Generated from method MR::Matrix4<unsigned char>::setRotation.

Calls MR_Matrix4_unsigned_char_setRotation().

◆ set_translation()

void meshlib::Matrix4_unsigned_char::set_translation ( t:&meshlib::Vector3_unsigned_char )

Generated from method MR::Matrix4<unsigned char>::setTranslation.

Calls MR_Matrix4_unsigned_char_setTranslation().

◆ set_w()

void meshlib::Matrix4_unsigned_char::set_w ( value:&meshlib::Vector4_unsigned_char )

Modifies a member variable of class MR::Matrix4<unsigned char> named w.

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

◆ set_x()

void meshlib::Matrix4_unsigned_char::set_x ( value:&meshlib::Vector4_unsigned_char )

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

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

◆ set_y()

void meshlib::Matrix4_unsigned_char::set_y ( value:&meshlib::Vector4_unsigned_char )

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

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

◆ set_z()

void meshlib::Matrix4_unsigned_char::set_z ( value:&meshlib::Vector4_unsigned_char )

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

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

◆ submatrix3()

auto meshlib::Matrix4_unsigned_char::submatrix3 ( i:core::ffi::c_int ,
j:core::ffi::c_int  ) const -> meshlib::Owned< meshlib::Matrix3_unsigned_char >

computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR::Matrix4<unsigned char>::submatrix3.

Calls MR_Matrix4_unsigned_char_submatrix3().

◆ trace()

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

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

Calls MR_Matrix4_unsigned_char_trace().

◆ transposed()

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

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

Calls MR_Matrix4_unsigned_char_transposed().

◆ w()

auto meshlib::Matrix4_unsigned_char::w ( ) const -> &meshlib::Vector4_unsigned_char

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

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

◆ w_mut()

auto meshlib::Matrix4_unsigned_char::w_mut ( ) -> &mut meshlib::Vector4_unsigned_char

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

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

◆ x()

auto meshlib::Matrix4_unsigned_char::x ( ) const -> &meshlib::Vector4_unsigned_char

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

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

◆ x_mut()

auto meshlib::Matrix4_unsigned_char::x_mut ( ) -> &mut meshlib::Vector4_unsigned_char

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

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

◆ y()

auto meshlib::Matrix4_unsigned_char::y ( ) const -> &meshlib::Vector4_unsigned_char

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

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

◆ y_mut()

auto meshlib::Matrix4_unsigned_char::y_mut ( ) -> &mut meshlib::Vector4_unsigned_char

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

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

◆ z()

auto meshlib::Matrix4_unsigned_char::z ( ) const -> &meshlib::Vector4_unsigned_char

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

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

◆ z_mut()

auto meshlib::Matrix4_unsigned_char::z_mut ( ) -> &mut meshlib::Vector4_unsigned_char

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

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

◆ zero()

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

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

Calls MR_Matrix4_unsigned_char_zero().


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