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... | |
| None | set_zeros (self) |
| Sets the sl.Matrix3f to zero. | |
| str | get_infos (self) |
| Returns the components of the sl.Matrix3f in a string. More... | |
| str | matrix_name (self) |
| Name of the matrix (optional). | |
| int | nbElem (self) |
| Number of elements in the matrix (always 9). | |
| np.numpy[float][float] | r (self) |
| 3*3 numpy array of inner data. | |
Static Functions | |
| Matrix3f | identity () |
| Creates an identity sl.Matrix3f. More... | |
| Matrix3f | zeros () |
| Creates a sl.Matrix3f filled with zeros. More... | |
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.
| None init_matrix | ( | self, | |
| Matrix3f, | |||
| matrix | |||
| ) |
Copy the values from another sl.Matrix3f.
| matrix | : sl.Matrix3f to copy. |
| Matrix3f inverse_mat | ( | self, | |
| Matrix3f, | |||
| rotation | |||
| ) |
Returns the inverse of a sl.Matrix3f.
| rotation | : sl.Matrix3f to compute the inverse from. |
| Matrix3f transpose_mat | ( | self, | |
| Matrix3f, | |||
| rotation | |||
| ) |
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.
|
static |
Creates an identity sl.Matrix3f.
|
static |
Creates a sl.Matrix3f filled with zeros.
| str get_infos | ( | self | ) |
Returns the components of the sl.Matrix3f in a string.
Referenced by Matrix4f.nbElem(), and Mat.verbose().