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

Public Member Functions

auto index (row:core::ffi::c_int) const -> &meshlib::Vector2f
auto index_mut (row:core::ffi::c_int) -> &mut meshlib::Vector2f
auto col (i:core::ffi::c_int) const -> meshlib::Vector2f
auto trace () const -> f32
auto norm_sq () const -> f32
auto norm () const -> f32
auto det () const -> f32
auto inverse () const -> meshlib::Matrix2f
auto transposed () const -> meshlib::Matrix2f

Static Public Member Functions

static auto new () -> meshlib::Matrix2f
static auto construct (x:&meshlib::Vector2f, y:&meshlib::Vector2f) -> meshlib::Matrix2f
static auto zero () -> meshlib::Matrix2f
static auto identity () -> meshlib::Matrix2f
static auto scale_1_float (s:f32) -> meshlib::Matrix2f
static auto scale_2 (sx:f32, sy:f32) -> meshlib::Matrix2f
static auto scale_1_mr_vector2f (s:&meshlib::Vector2f) -> meshlib::Matrix2f
static auto rotation_1 (angle:f32) -> meshlib::Matrix2f
static auto rotation_2 (from:&meshlib::Vector2f, to:&meshlib::Vector2f) -> meshlib::Matrix2f
static auto from_rows (x:&meshlib::Vector2f, y:&meshlib::Vector2f) -> meshlib::Matrix2f
static auto from_columns (x:&meshlib::Vector2f, y:&meshlib::Vector2f) -> meshlib::Matrix2f

Public Attributes

meshlib::Vector2f x
 rows, identity matrix by default
meshlib::Vector2f y

Detailed Description

arbitrary 2x2 matrix Generated from class MR::Matrix2f.

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

Member Function Documentation

◆ col()

auto meshlib::Matrix2f::col ( i:core::ffi::c_int ) const -> meshlib::Vector2f

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

Calls MR_Matrix2f_col().

◆ construct()

auto meshlib::Matrix2f::construct ( x:&meshlib::Vector2f ,
y:&meshlib::Vector2f  ) -> meshlib::Matrix2f
static

initializes matrix from its 2 rows Generated from constructor MR::Matrix2f::Matrix2f.

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

◆ det()

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

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

Calls MR_Matrix2f_det().

◆ from_columns()

auto meshlib::Matrix2f::from_columns ( x:&meshlib::Vector2f ,
y:&meshlib::Vector2f  ) -> meshlib::Matrix2f
static

constructs a matrix from its 2 columns; use this method to get the matrix that transforms basis vectors ( plusX, plusY ) into vectors ( x, y ) respectively Generated from method MR::Matrix2f::fromColumns.

Calls MR_Matrix2f_fromColumns().

◆ from_rows()

auto meshlib::Matrix2f::from_rows ( x:&meshlib::Vector2f ,
y:&meshlib::Vector2f  ) -> meshlib::Matrix2f
static

constructs a matrix from its 2 rows Generated from method MR::Matrix2f::fromRows.

Calls MR_Matrix2f_fromRows().

◆ identity()

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

Generated from method MR::Matrix2f::identity.

Calls MR_Matrix2f_identity().

◆ index()

auto meshlib::Matrix2f::index ( row:core::ffi::c_int ) const -> &meshlib::Vector2f

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

Calls MR_Matrix2f_index().

◆ index_mut()

auto meshlib::Matrix2f::index_mut ( row:core::ffi::c_int ) -> &mut meshlib::Vector2f

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

Calls MR_Matrix2f_index_mut().

◆ inverse()

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

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

Calls MR_Matrix2f_inverse().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Matrix2f_DefaultConstruct().

◆ norm()

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

Generated from method MR::Matrix2f::norm.

Calls MR_Matrix2f_norm().

◆ norm_sq()

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

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

Calls MR_Matrix2f_normSq().

◆ rotation_1()

auto meshlib::Matrix2f::rotation_1 ( angle:f32 ) -> meshlib::Matrix2f
static

creates matrix representing rotation around origin on given angle Generated from method MR::Matrix2f::rotation.

Calls MR_Matrix2f_rotation_1().

◆ rotation_2()

auto meshlib::Matrix2f::rotation_2 ( from:&meshlib::Vector2f ,
to:&meshlib::Vector2f  ) -> meshlib::Matrix2f
static

creates matrix representing rotation that after application to (from) makes (to) vector Generated from method MR::Matrix2f::rotation.

Calls MR_Matrix2f_rotation_2().

◆ scale_1_float()

auto meshlib::Matrix2f::scale_1_float ( s:f32 ) -> meshlib::Matrix2f
static

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

Calls MR_Matrix2f_scale_1_float().

◆ scale_1_mr_vector2f()

auto meshlib::Matrix2f::scale_1_mr_vector2f ( s:&meshlib::Vector2f ) -> meshlib::Matrix2f
static

Generated from method MR::Matrix2f::scale.

Calls MR_Matrix2f_scale_1_MR_Vector2f().

◆ scale_2()

auto meshlib::Matrix2f::scale_2 ( sx:f32 ,
sy:f32  ) -> meshlib::Matrix2f
static

returns a matrix that has its own scale along each axis Generated from method MR::Matrix2f::scale.

Calls MR_Matrix2f_scale_2().

◆ trace()

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

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

Calls MR_Matrix2f_trace().

◆ transposed()

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

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

Calls MR_Matrix2f_transposed().

◆ zero()

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

Generated from method MR::Matrix2f::zero.

Calls MR_Matrix2f_zero().

Member Data Documentation

◆ x

meshlib::Vector2f meshlib::Matrix2f::x

rows, identity matrix by default

◆ y

meshlib::Vector2f meshlib::Matrix2f::y

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