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

Public Member Functions

auto convert_to_mr_affine_xf3f () const -> meshlib::AffineXf3f
auto call_2 (row:core::ffi::c_int, col:core::ffi::c_int) const -> &f32
auto call_mut (row:core::ffi::c_int, col:core::ffi::c_int) -> &mut f32
auto index (row:core::ffi::c_int) const -> &meshlib::Vector4f
auto index_mut (row:core::ffi::c_int) -> &mut meshlib::Vector4f
auto col (i:core::ffi::c_int) const -> meshlib::Vector4f
auto trace () const -> f32
auto norm_sq () const -> f32
auto norm () const -> f32
auto submatrix3 (i:core::ffi::c_int, j:core::ffi::c_int) const -> meshlib::Matrix3f
auto det () const -> f32
auto inverse () const -> meshlib::Matrix4f
auto transposed () const -> meshlib::Matrix4f
auto get_rotation () const -> meshlib::Matrix3f
void set_rotation (rot:&meshlib::Matrix3f)
auto get_translation () const -> meshlib::Vector3f
void set_translation (t:&meshlib::Vector3f)
auto data_mut () -> Option<&mut f32 >
auto data () const -> Option<&f32 >
auto call_1 (b:&meshlib::Vector3f) const -> meshlib::Vector3f

Static Public Member Functions

static auto new () -> meshlib::Matrix4f
static auto construct_4 (x:&meshlib::Vector4f, y:&meshlib::Vector4f, z:&meshlib::Vector4f, w:&meshlib::Vector4f) -> meshlib::Matrix4f
static auto construct_2 (r:&meshlib::Matrix3f, t:&meshlib::Vector3f) -> meshlib::Matrix4f
static auto construct_1 (xf:&meshlib::AffineXf3f) -> meshlib::Matrix4f
static auto zero () -> meshlib::Matrix4f
static auto identity () -> meshlib::Matrix4f
static auto scale (s:f32) -> meshlib::Matrix4f

Public Attributes

meshlib::Vector4f x
 rows, identity matrix by default
meshlib::Vector4f y
meshlib::Vector4f z
meshlib::Vector4f w

Detailed Description

arbitrary 4x4 matrix Generated from class MR::Matrix4f.

Generated from struct MR::Matrix4f. The fields are accessed directly.

Member Function Documentation

◆ call_1()

auto meshlib::Matrix4f::call_1 ( b:&meshlib::Vector3f ) const -> meshlib::Vector3f

converts 3d-vector b in 4d-vector (b,1), multiplies matrix on it, and assuming the result is in homogeneous coordinates returns it as 3d-vector Generated from method MR::Matrix4f::operator().

Calls MR_Matrix4f_call_1().

◆ call_2()

auto meshlib::Matrix4f::call_2 ( row:core::ffi::c_int ,
col:core::ffi::c_int  ) const -> &f32

element access Generated from method MR::Matrix4f::operator().

Calls MR_Matrix4f_call_2().

◆ call_mut()

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

Generated from method MR::Matrix4f::operator().

Calls MR_Matrix4f_call_mut().

◆ col()

auto meshlib::Matrix4f::col ( i:core::ffi::c_int ) const -> meshlib::Vector4f

column access Generated from method MR::Matrix4f::col.

Calls MR_Matrix4f_col().

◆ construct_1()

auto meshlib::Matrix4f::construct_1 ( xf:&meshlib::AffineXf3f ) -> meshlib::Matrix4f
static

Currently AffineXf3<long long> doesn't seem to compile, so we disable this constructor for Matrix4<long long>, because otherwise mrbind instantiates the entire AffineXf3<long long> and chokes on it. Generated from constructor MR::Matrix4f::Matrix4f.

Calls MR_Matrix4f_Construct_1(). The reference to the parameter xf might be preserved in the constructed object.

◆ construct_2()

auto meshlib::Matrix4f::construct_2 ( r:&meshlib::Matrix3f ,
t:&meshlib::Vector3f  ) -> meshlib::Matrix4f
static

construct from rotation matrix and translation vector Generated from constructor MR::Matrix4f::Matrix4f.

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

auto meshlib::Matrix4f::construct_4 ( x:&meshlib::Vector4f ,
y:&meshlib::Vector4f ,
z:&meshlib::Vector4f ,
w:&meshlib::Vector4f  ) -> meshlib::Matrix4f
static

initializes matrix from 4 row-vectors Generated from constructor MR::Matrix4f::Matrix4f.

Calls MR_Matrix4f_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.

◆ convert_to_mr_affine_xf3f()

auto meshlib::Matrix4f::convert_to_mr_affine_xf3f ( ) const -> meshlib::AffineXf3f

Generated from conversion operator MR::Matrix4f::operator MR::AffineXf3f.

Calls MR_Matrix4f_ConvertTo_MR_AffineXf3f().

◆ data()

auto meshlib::Matrix4f::data ( ) const -> Option<&f32 >

Generated from method MR::Matrix4f::data.

Calls MR_Matrix4f_data().

◆ data_mut()

auto meshlib::Matrix4f::data_mut ( ) -> Option<&mut f32 >

Generated from method MR::Matrix4f::data.

Calls MR_Matrix4f_data_mut().

◆ det()

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

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

Calls MR_Matrix4f_det().

◆ get_rotation()

auto meshlib::Matrix4f::get_rotation ( ) const -> meshlib::Matrix3f

Generated from method MR::Matrix4f::getRotation.

Calls MR_Matrix4f_getRotation().

◆ get_translation()

auto meshlib::Matrix4f::get_translation ( ) const -> meshlib::Vector3f

Generated from method MR::Matrix4f::getTranslation.

Calls MR_Matrix4f_getTranslation().

◆ identity()

auto meshlib::Matrix4f::identity ( ) -> meshlib::Matrix4f
static

Generated from method MR::Matrix4f::identity.

Calls MR_Matrix4f_identity().

◆ index()

auto meshlib::Matrix4f::index ( row:core::ffi::c_int ) const -> &meshlib::Vector4f

row access Generated from method MR::Matrix4f::operator[].

Calls MR_Matrix4f_index().

◆ index_mut()

auto meshlib::Matrix4f::index_mut ( row:core::ffi::c_int ) -> &mut meshlib::Vector4f

Generated from method MR::Matrix4f::operator[].

Calls MR_Matrix4f_index_mut().

◆ inverse()

auto meshlib::Matrix4f::inverse ( ) const -> meshlib::Matrix4f

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

Calls MR_Matrix4f_inverse().

◆ new()

auto meshlib::Matrix4f::new ( ) -> meshlib::Matrix4f
static

Constructs an empty (default-constructed) instance.

Calls MR_Matrix4f_DefaultConstruct().

◆ norm()

auto meshlib::Matrix4f::norm ( ) const -> f32

Generated from method MR::Matrix4f::norm.

Calls MR_Matrix4f_norm().

◆ norm_sq()

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

compute sum of squared matrix elements Generated from method MR::Matrix4f::normSq.

Calls MR_Matrix4f_normSq().

◆ scale()

auto meshlib::Matrix4f::scale ( s:f32 ) -> meshlib::Matrix4f
static

returns a matrix that scales uniformly Generated from method MR::Matrix4f::scale.

Calls MR_Matrix4f_scale().

◆ set_rotation()

void meshlib::Matrix4f::set_rotation ( rot:&meshlib::Matrix3f )

Generated from method MR::Matrix4f::setRotation.

Calls MR_Matrix4f_setRotation().

◆ set_translation()

void meshlib::Matrix4f::set_translation ( t:&meshlib::Vector3f )

Generated from method MR::Matrix4f::setTranslation.

Calls MR_Matrix4f_setTranslation().

◆ submatrix3()

auto meshlib::Matrix4f::submatrix3 ( i:core::ffi::c_int ,
j:core::ffi::c_int  ) const -> meshlib::Matrix3f

computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR::Matrix4f::submatrix3.

Calls MR_Matrix4f_submatrix3().

◆ trace()

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

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

Calls MR_Matrix4f_trace().

◆ transposed()

auto meshlib::Matrix4f::transposed ( ) const -> meshlib::Matrix4f

computes transposed matrix Generated from method MR::Matrix4f::transposed.

Calls MR_Matrix4f_transposed().

◆ zero()

auto meshlib::Matrix4f::zero ( ) -> meshlib::Matrix4f
static

Generated from method MR::Matrix4f::zero.

Calls MR_Matrix4f_zero().

Member Data Documentation

◆ w

meshlib::Vector4f meshlib::Matrix4f::w

◆ x

meshlib::Vector4f meshlib::Matrix4f::x

rows, identity matrix by default

◆ y

meshlib::Vector4f meshlib::Matrix4f::y

◆ z

meshlib::Vector4f meshlib::Matrix4f::z

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