Represents a generic 3*3 matrix. More...
Functions | |
def | init_matrix (self, Matrix3f matrix) |
Creates a Matrix3f from another Matrix3f. More... | |
def | inverse (self) |
Inverses the matrix. | |
def | inverse_mat (self, Matrix3f rotation) |
Inverses the Matrix3f passed as a parameter. More... | |
def | transpose (self) |
Sets the Matrix3f to its transpose. | |
def | transpose_mat (self, Matrix3f rotation) |
Returns the transpose of a Matrix3f. More... | |
def | set_identity (self) |
Sets the Matrix3f to identity. More... | |
def | identity (self) |
Creates an identity Matrix3f. More... | |
def | set_zeros (self) |
Sets the Matrix3f to zero. | |
def | zeros (self) |
Creates a Matrix3f filled with zeros. More... | |
def | get_infos (self) |
Returns the components of the Matrix3f in a string. More... | |
def | matrix_name (self) |
Name of the matrix (optional). | |
def | r (self) |
Numpy array of inner data. | |
Represents 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. You can access the data with the 'r' ptr or by element attribute.
r00 | r01 | r02 |
r10 | r11 | r12 |
r20 | r21 | r22 |
def init_matrix | ( | self, | |
Matrix3f | matrix | ||
) |
def inverse_mat | ( | self, | |
Matrix3f | rotation | ||
) |
def transpose_mat | ( | self, | |
Matrix3f | rotation | ||
) |
def set_identity | ( | self | ) |
Sets the Matrix3f to identity.
def get_infos | ( | self | ) |
Returns the components of the Matrix3f in a string.
Referenced by Matrix4f.m(), and Mat.verbose().