Matrix3f Class Reference

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.
 

Detailed Description

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

Functions

◆ init_matrix()

None init_matrix (   self,
Matrix3f  matrix 
)

Copy the values from another sl.Matrix3f.

Parameters
matrix: sl.Matrix3f to copy.

Reimplemented in Rotation.

◆ inverse_mat()

Matrix3f inverse_mat (   self,
Matrix3f  rotation 
)

Returns the inverse of a sl.Matrix3f.

Parameters
rotation: sl.Matrix3f to compute the inverse from.
Returns
The inverse of the sl.Matrix3f given as input.

◆ transpose_mat()

Matrix3f transpose_mat (   self,
Matrix3f  rotation 
)

Returns the transpose of a sl.Matrix3f.

Parameters
rotation: sl.Matrix3f to compute the transpose from.
Returns
The transpose of the sl.Matrix3f given as input.

◆ set_identity()

Matrix3f set_identity (   self)

Sets the sl.Matrix3f to identity.

Returns
itself

◆ identity()

Matrix3f identity (   self)

Creates an identity sl.Matrix3f.

Returns
A sl.Matrix3f set to identity.

◆ zeros()

Matrix3f zeros (   self)

Creates a sl.Matrix3f filled with zeros.

Returns
A sl.Matrix3f filled with zeros.

◆ get_infos()

str get_infos (   self)

Returns the components of the sl.Matrix3f in a string.

Returns
A string containing the components of the current sl.Matrix3f.

Referenced by Matrix4f.m(), and Mat.verbose().