abs(_self) | Takes the absolute value of each element in `self` |
abs_diff_eq(_self, rhs, max_abs_diff) | Returns true if the absolute difference of all elements between `self` and `rhs` is less than or e |
add(_self, rhs) | No Documentation 🚧 |
add_mat2(_self, rhs) | Adds two 2x2 matrices. |
as_mat2(_self) | No Documentation 🚧 |
clone(_self) | No Documentation 🚧 |
col(_self, index) | Returns the matrix column for the given `index`. # Panics Panics if `index` is greater than 1. |
determinant(_self) | Returns the determinant of `self`. |
div(_self, rhs) | No Documentation 🚧 |
div_scalar(_self, rhs) | Divides a 2x2 matrix by a scalar. |
eq(_self, rhs) | No Documentation 🚧 |
from_angle(angle) | Creates a 2x2 matrix containing a rotation of `angle` (in radians). |
from_cols(x_axis, y_axis) | Creates a 2x2 matrix from two column vectors. |
from_diagonal(diagonal) | Creates a 2x2 matrix with its diagonal set to `diagonal` and all other entries set to 0. |
from_mat3(m) | Creates a 2x2 matrix from a 3x3 matrix, discarding the 2nd row and column. |
from_mat3_minor(m, i, j) | Creates a 2x2 matrix from the minor of the given 3x3 matrix, discarding the `i`th column and `j`th |
from_scale_angle(scale, angle) | Creates a 2x2 matrix containing the combining non-uniform `scale` and rotation of `angle` (in radi |
inverse(_self) | Returns the inverse of `self`. If the matrix is not invertible the returned matrix will be invalid |
is_finite(_self) | Returns `true` if, and only if, all elements are finite. If any element is either `NaN`, positive |
is_nan(_self) | Returns `true` if any elements are `NaN`. |
mul(_self, rhs) | No Documentation 🚧 |
mul-1(arg0, arg1) | No Documentation 🚧 |
mul-2(arg0, arg1) | No Documentation 🚧 |
mul_mat2(_self, rhs) | Multiplies two 2x2 matrices. |
mul_scalar(_self, rhs) | Multiplies a 2x2 matrix by a scalar. |
mul_vec2(_self, rhs) | Transforms a 2D vector. |
neg(_self) | No Documentation 🚧 |
row(_self, index) | Returns the matrix row for the given `index`. # Panics Panics if `index` is greater than 1. |
sub(_self, rhs) | No Documentation 🚧 |
sub_mat2(_self, rhs) | Subtracts two 2x2 matrices. |
to_cols_array(_self) | Creates a `[f64; 4]` array storing data in column major order. If you require data in row major order `transpose` the matrix first. |
to_cols_array_2d(_self) | Creates a `[[f64; 2]; 2]` 2D array storing data in column major order. If you require data in row |
transpose(_self) | Returns the transpose of `self`. |