Class representing a generic 3*3 matrix. More...
Functions | |
None | init_matrix (self, Matrix3f matrix) |
Copy the values from another sl.Matrix3f. More... | |
None | inverse (self) |
Sets the sl.Matrix3f to its inverse. | |
Matrix3f | inverse_mat (self, Matrix3f rotation) |
Returns the inverse of a sl.Matrix3f. More... | |
None | transpose (self) |
Sets the sl.Matrix3f to its transpose. | |
Matrix3f | transpose_mat (self, Matrix3f rotation) |
Returns the transpose of a sl.Matrix3f. More... | |
Matrix3f | set_identity (self) |
Sets the sl.Matrix3f to identity. More... | |
Matrix3f | identity (self) |
Creates an identity sl.Matrix3f. More... | |
None | set_zeros (self) |
Sets the sl.Matrix3f to zero. | |
Matrix3f | zeros (self) |
Creates a sl.Matrix3f filled with zeros. More... | |
str | get_infos (self) |
Returns the components of the sl.Matrix3f in a string. More... | |
str | matrix_name (self) |
Name of the matrix (optional). | |
np.numpy[float][float] | r (self) |
3*3 numpy array of inner data. | |
Class representing a generic 3*3 matrix.
It is defined in a row-major order, it means that, in the value buffer, the entire first row is stored first, followed by the entire second row, and so on.
The data value of the matrix can be accessed with the r() method.
r00 | r01 | r02 |
r10 | r11 | r12 |
r20 | r21 | r22 |
None init_matrix | ( | self, | |
Matrix3f | matrix | ||
) |
Copy the values from another sl.Matrix3f.
matrix | : sl.Matrix3f to copy. |
Reimplemented in Rotation.
Returns the inverse of a sl.Matrix3f.
rotation | : sl.Matrix3f to compute the inverse from. |
Returns the transpose of a sl.Matrix3f.
rotation | : sl.Matrix3f to compute the transpose from. |
Matrix3f set_identity | ( | self | ) |
Sets the sl.Matrix3f to identity.
Matrix3f identity | ( | self | ) |
Creates an identity sl.Matrix3f.
Matrix3f zeros | ( | self | ) |
Creates a sl.Matrix3f filled with zeros.
str get_infos | ( | self | ) |
Returns the components of the sl.Matrix3f in a string.
Referenced by Matrix4f.m(), and Mat.verbose().