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 |
arbitrary 2x2 matrix Generated from class MR::Matrix2f.
Generated from struct MR::Matrix2f. The fields are accessed directly.
| auto meshlib::Matrix2f::col | ( | i:core::ffi::c_int | ) | const -> meshlib::Vector2f |
column access Generated from method MR::Matrix2f::col.
Calls MR_Matrix2f_col().
|
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.
| auto meshlib::Matrix2f::det | ( | ) | const -> f32 |
computes determinant of the matrix Generated from method MR::Matrix2f::det.
Calls MR_Matrix2f_det().
|
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().
|
static |
constructs a matrix from its 2 rows Generated from method MR::Matrix2f::fromRows.
Calls MR_Matrix2f_fromRows().
|
static |
Generated from method MR::Matrix2f::identity.
Calls MR_Matrix2f_identity().
| auto meshlib::Matrix2f::index | ( | row:core::ffi::c_int | ) | const -> &meshlib::Vector2f |
row access Generated from method MR::Matrix2f::operator[].
Calls MR_Matrix2f_index().
| auto meshlib::Matrix2f::index_mut | ( | row:core::ffi::c_int | ) | -> &mut meshlib::Vector2f |
Generated from method MR::Matrix2f::operator[].
Calls MR_Matrix2f_index_mut().
| auto meshlib::Matrix2f::inverse | ( | ) | const -> meshlib::Matrix2f |
computes inverse matrix Generated from method MR::Matrix2f::inverse.
Calls MR_Matrix2f_inverse().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix2f_DefaultConstruct().
| auto meshlib::Matrix2f::norm | ( | ) | const -> f32 |
Generated from method MR::Matrix2f::norm.
Calls MR_Matrix2f_norm().
| auto meshlib::Matrix2f::norm_sq | ( | ) | const -> f32 |
compute sum of squared matrix elements Generated from method MR::Matrix2f::normSq.
Calls MR_Matrix2f_normSq().
|
static |
creates matrix representing rotation around origin on given angle Generated from method MR::Matrix2f::rotation.
Calls MR_Matrix2f_rotation_1().
|
static |
creates matrix representing rotation that after application to (from) makes (to) vector Generated from method MR::Matrix2f::rotation.
Calls MR_Matrix2f_rotation_2().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix2f::scale.
Calls MR_Matrix2f_scale_1_float().
|
static |
Generated from method MR::Matrix2f::scale.
Calls MR_Matrix2f_scale_1_MR_Vector2f().
|
static |
returns a matrix that has its own scale along each axis Generated from method MR::Matrix2f::scale.
Calls MR_Matrix2f_scale_2().
| auto meshlib::Matrix2f::trace | ( | ) | const -> f32 |
computes trace of the matrix Generated from method MR::Matrix2f::trace.
Calls MR_Matrix2f_trace().
| auto meshlib::Matrix2f::transposed | ( | ) | const -> meshlib::Matrix2f |
computes transposed matrix Generated from method MR::Matrix2f::transposed.
Calls MR_Matrix2f_transposed().
|
static |
Generated from method MR::Matrix2f::zero.
Calls MR_Matrix2f_zero().
| meshlib::Vector2f meshlib::Matrix2f::x |
rows, identity matrix by default
| meshlib::Vector2f meshlib::Matrix2f::y |