Public Member Functions | |
| auto | index (row:core::ffi::c_int) const -> &meshlib::Vector2d |
| auto | index_mut (row:core::ffi::c_int) -> &mut meshlib::Vector2d |
| auto | col (i:core::ffi::c_int) const -> meshlib::Vector2d |
| auto | trace () const -> f64 |
| auto | norm_sq () const -> f64 |
| auto | norm () const -> f64 |
| auto | det () const -> f64 |
| auto | inverse () const -> meshlib::Matrix2d |
| auto | transposed () const -> meshlib::Matrix2d |
Static Public Member Functions | |
| static auto | new () -> meshlib::Matrix2d |
| static auto | construct (x:&meshlib::Vector2d, y:&meshlib::Vector2d) -> meshlib::Matrix2d |
| static auto | zero () -> meshlib::Matrix2d |
| static auto | identity () -> meshlib::Matrix2d |
| static auto | scale_1_double (s:f64) -> meshlib::Matrix2d |
| static auto | scale_2 (sx:f64, sy:f64) -> meshlib::Matrix2d |
| static auto | scale_1_mr_vector2d (s:&meshlib::Vector2d) -> meshlib::Matrix2d |
| static auto | rotation_1 (angle:f64) -> meshlib::Matrix2d |
| static auto | rotation_2 (from:&meshlib::Vector2d, to:&meshlib::Vector2d) -> meshlib::Matrix2d |
| static auto | from_rows (x:&meshlib::Vector2d, y:&meshlib::Vector2d) -> meshlib::Matrix2d |
| static auto | from_columns (x:&meshlib::Vector2d, y:&meshlib::Vector2d) -> meshlib::Matrix2d |
Public Attributes | |
| meshlib::Vector2d | x |
| rows, identity matrix by default | |
| meshlib::Vector2d | y |
arbitrary 2x2 matrix Generated from class MR::Matrix2d.
Generated from struct MR::Matrix2d. The fields are accessed directly.
| auto meshlib::Matrix2d::col | ( | i:core::ffi::c_int | ) | const -> meshlib::Vector2d |
column access Generated from method MR::Matrix2d::col.
Calls MR_Matrix2d_col().
|
static |
initializes matrix from its 2 rows Generated from constructor MR::Matrix2d::Matrix2d.
Calls MR_Matrix2d_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::Matrix2d::det | ( | ) | const -> f64 |
computes determinant of the matrix Generated from method MR::Matrix2d::det.
Calls MR_Matrix2d_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::Matrix2d::fromColumns.
Calls MR_Matrix2d_fromColumns().
|
static |
constructs a matrix from its 2 rows Generated from method MR::Matrix2d::fromRows.
Calls MR_Matrix2d_fromRows().
|
static |
Generated from method MR::Matrix2d::identity.
Calls MR_Matrix2d_identity().
| auto meshlib::Matrix2d::index | ( | row:core::ffi::c_int | ) | const -> &meshlib::Vector2d |
row access Generated from method MR::Matrix2d::operator[].
Calls MR_Matrix2d_index().
| auto meshlib::Matrix2d::index_mut | ( | row:core::ffi::c_int | ) | -> &mut meshlib::Vector2d |
Generated from method MR::Matrix2d::operator[].
Calls MR_Matrix2d_index_mut().
| auto meshlib::Matrix2d::inverse | ( | ) | const -> meshlib::Matrix2d |
computes inverse matrix Generated from method MR::Matrix2d::inverse.
Calls MR_Matrix2d_inverse().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix2d_DefaultConstruct().
| auto meshlib::Matrix2d::norm | ( | ) | const -> f64 |
Generated from method MR::Matrix2d::norm.
Calls MR_Matrix2d_norm().
| auto meshlib::Matrix2d::norm_sq | ( | ) | const -> f64 |
compute sum of squared matrix elements Generated from method MR::Matrix2d::normSq.
Calls MR_Matrix2d_normSq().
|
static |
creates matrix representing rotation around origin on given angle Generated from method MR::Matrix2d::rotation.
Calls MR_Matrix2d_rotation_1().
|
static |
creates matrix representing rotation that after application to (from) makes (to) vector Generated from method MR::Matrix2d::rotation.
Calls MR_Matrix2d_rotation_2().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix2d::scale.
Calls MR_Matrix2d_scale_1_double().
|
static |
Generated from method MR::Matrix2d::scale.
Calls MR_Matrix2d_scale_1_MR_Vector2d().
|
static |
returns a matrix that has its own scale along each axis Generated from method MR::Matrix2d::scale.
Calls MR_Matrix2d_scale_2().
| auto meshlib::Matrix2d::trace | ( | ) | const -> f64 |
computes trace of the matrix Generated from method MR::Matrix2d::trace.
Calls MR_Matrix2d_trace().
| auto meshlib::Matrix2d::transposed | ( | ) | const -> meshlib::Matrix2d |
computes transposed matrix Generated from method MR::Matrix2d::transposed.
Calls MR_Matrix2d_transposed().
|
static |
Generated from method MR::Matrix2d::zero.
Calls MR_Matrix2d_zero().
| meshlib::Vector2d meshlib::Matrix2d::x |
rows, identity matrix by default
| meshlib::Vector2d meshlib::Matrix2d::y |