Public Member Functions | |
| auto | index (row:core::ffi::c_int) const -> &meshlib::Vector2b |
| auto | index_mut (row:core::ffi::c_int) -> &mut meshlib::Vector2b |
| auto | col (i:core::ffi::c_int) const -> meshlib::Vector2b |
| auto | trace () const -> bool |
| auto | norm_sq () const -> bool |
| auto | norm () const -> f64 |
| auto | det () const -> bool |
| auto | transposed () const -> meshlib::Matrix2b |
Static Public Member Functions | |
| static auto | new () -> meshlib::Matrix2b |
| static auto | construct (x:&meshlib::Vector2b, y:&meshlib::Vector2b) -> meshlib::Matrix2b |
| static auto | zero () -> meshlib::Matrix2b |
| static auto | identity () -> meshlib::Matrix2b |
| static auto | scale_1_bool (s:bool) -> meshlib::Matrix2b |
| static auto | scale_2 (sx:bool, sy:bool) -> meshlib::Matrix2b |
| static auto | scale_1_mr_vector2b (s:&meshlib::Vector2b) -> meshlib::Matrix2b |
| static auto | from_rows (x:&meshlib::Vector2b, y:&meshlib::Vector2b) -> meshlib::Matrix2b |
| static auto | from_columns (x:&meshlib::Vector2b, y:&meshlib::Vector2b) -> meshlib::Matrix2b |
Public Attributes | |
| meshlib::Vector2b | x |
| rows, identity matrix by default | |
| meshlib::Vector2b | y |
arbitrary 2x2 matrix Generated from class MR::Matrix2b.
Generated from struct MR::Matrix2b. The fields are accessed directly.
| auto meshlib::Matrix2b::col | ( | i:core::ffi::c_int | ) | const -> meshlib::Vector2b |
column access Generated from method MR::Matrix2b::col.
Calls MR_Matrix2b_col().
|
static |
initializes matrix from its 2 rows Generated from constructor MR::Matrix2b::Matrix2b.
Calls MR_Matrix2b_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::Matrix2b::det | ( | ) | const -> bool |
computes determinant of the matrix Generated from method MR::Matrix2b::det.
Calls MR_Matrix2b_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::Matrix2b::fromColumns.
Calls MR_Matrix2b_fromColumns().
|
static |
constructs a matrix from its 2 rows Generated from method MR::Matrix2b::fromRows.
Calls MR_Matrix2b_fromRows().
|
static |
Generated from method MR::Matrix2b::identity.
Calls MR_Matrix2b_identity().
| auto meshlib::Matrix2b::index | ( | row:core::ffi::c_int | ) | const -> &meshlib::Vector2b |
row access Generated from method MR::Matrix2b::operator[].
Calls MR_Matrix2b_index().
| auto meshlib::Matrix2b::index_mut | ( | row:core::ffi::c_int | ) | -> &mut meshlib::Vector2b |
Generated from method MR::Matrix2b::operator[].
Calls MR_Matrix2b_index_mut().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix2b_DefaultConstruct().
| auto meshlib::Matrix2b::norm | ( | ) | const -> f64 |
Generated from method MR::Matrix2b::norm.
Calls MR_Matrix2b_norm().
| auto meshlib::Matrix2b::norm_sq | ( | ) | const -> bool |
compute sum of squared matrix elements Generated from method MR::Matrix2b::normSq.
Calls MR_Matrix2b_normSq().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix2b::scale.
Calls MR_Matrix2b_scale_1_bool().
|
static |
Generated from method MR::Matrix2b::scale.
Calls MR_Matrix2b_scale_1_MR_Vector2b().
|
static |
returns a matrix that has its own scale along each axis Generated from method MR::Matrix2b::scale.
Calls MR_Matrix2b_scale_2().
| auto meshlib::Matrix2b::trace | ( | ) | const -> bool |
computes trace of the matrix Generated from method MR::Matrix2b::trace.
Calls MR_Matrix2b_trace().
| auto meshlib::Matrix2b::transposed | ( | ) | const -> meshlib::Matrix2b |
computes transposed matrix Generated from method MR::Matrix2b::transposed.
Calls MR_Matrix2b_transposed().
|
static |
Generated from method MR::Matrix2b::zero.
Calls MR_Matrix2b_zero().
| meshlib::Vector2b meshlib::Matrix2b::x |
rows, identity matrix by default
| meshlib::Vector2b meshlib::Matrix2b::y |