 DOCUMENTATION SAMPLES API REFERENCE SUPPORT DOWNLOADS C++ Python C# C
Matrix3f Class Reference

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.

## Detailed Description

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

## ◆ init_matrix()

 def init_matrix ( self, Matrix3f matrix )

Creates a Matrix3f from another Matrix3f.

Parameters
 matrix : the Matrix3f to copy

Reimplemented in Rotation.

## ◆ inverse_mat()

 def inverse_mat ( self, Matrix3f rotation )

Inverses the Matrix3f passed as a parameter.

Parameters
 rotation : the Matrix3f to inverse
Returns
the inversed Matrix3f

## ◆ transpose_mat()

 def transpose_mat ( self, Matrix3f rotation )

Returns the transpose of a Matrix3f.

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

## ◆ set_identity()

 def set_identity ( self )

Sets the Matrix3f to identity.

Returns
itself

## ◆ identity()

 def identity ( self )

Creates an identity Matrix3f.

Returns
a Matrix3f set to identity

## ◆ zeros()

 def zeros ( self )

Creates a Matrix3f filled with zeros.

Returns
A Matrix3f filled with zeros

## ◆ get_infos()

 def get_infos ( self )

Returns the components of the Matrix3f in a string.

Returns
A string containing the components of the current of Matrix3f

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