The Matrix3x3 class provides methods for managing a 3 by 3 matrix.
More...
#include <matrix_3_x_3.hpp>
The Matrix3x3 class provides methods for managing a 3 by 3 matrix.
◆ Matrix3x3() [1/2]
pic::Matrix3x3::Matrix3x3 |
( |
| ) |
|
|
inline |
◆ Matrix3x3() [2/2]
pic::Matrix3x3::Matrix3x3 |
( |
float * |
data | ) |
|
|
inline |
◆ add()
void pic::Matrix3x3::add |
( |
float |
value | ) |
|
|
inline |
Add adds a value to the diagonal.
- Parameters
-
value | is the value to be added. |
◆ clone()
clone clones the matrix.
- Returns
- it returns the cloned matrix.
◆ crossProduct()
void pic::Matrix3x3::crossProduct |
( |
float * |
t | ) |
|
|
inline |
crossProduct computes the cross product matrix
- Parameters
-
◆ determinant()
float pic::Matrix3x3::determinant |
( |
| ) |
|
|
inline |
determinant computes the determinant of the matrix.
- Returns
◆ getIdentity()
void pic::Matrix3x3::getIdentity |
( |
| ) |
|
|
inline |
getIdentity sets the matrix as an identity matrix; diag(1, 1, 1);
◆ inverse()
inverse computes the inverse of the matrix.
- Parameters
-
- Returns
◆ mul() [1/2]
◆ mul() [2/2]
float* pic::Matrix3x3::mul |
( |
float * |
vec, |
|
|
float * |
ret |
|
) |
| |
|
inline |
◆ mulH()
float* pic::Matrix3x3::mulH |
( |
float * |
vec, |
|
|
float * |
ret |
|
) |
| |
|
inline |
◆ print()
void pic::Matrix3x3::print |
( |
| ) |
|
|
inline |
◆ projection()
float* pic::Matrix3x3::projection |
( |
float * |
vec, |
|
|
float * |
ret |
|
) |
| |
|
inline |
projection
- Parameters
-
- Returns
◆ set() [1/2]
void pic::Matrix3x3::set |
( |
const float * |
data | ) |
|
|
inline |
set sets the matrix up.
- Parameters
-
data | input data, they are assumed to be 9 floats. The matrix is stored by rows. |
◆ set() [2/2]
set sets the matrix up.
- Parameters
-
data | input data, they are assumed to be 9 floats. The matrix is stored by rows. |
◆ setRotationMatrix()
void pic::Matrix3x3::setRotationMatrix |
( |
float |
ang | ) |
|
|
inline |
setRotationMatrix sets the matrix as a rotation matrix
- Parameters
-
◆ setScaleMatrix()
void pic::Matrix3x3::setScaleMatrix |
( |
float |
x_scale, |
|
|
float |
y_scale |
|
) |
| |
|
inline |
SetScaleMatrix set the matrix as a scaling matrix.
- Parameters
-
◆ setShearMatrix()
void pic::Matrix3x3::setShearMatrix |
( |
float |
horizontal_shear, |
|
|
float |
vertical_shear |
|
) |
| |
|
inline |
SetShearMatrix sets the matrix as a shear matrix.
- Parameters
-
horizontal_shear | |
vertical_shear | |
◆ setTranslationMatrix()
void pic::Matrix3x3::setTranslationMatrix |
( |
float |
tx, |
|
|
float |
ty |
|
) |
| |
|
inline |
setTranslationMatrix sets the matrix as a translation matrix.
- Parameters
-
◆ transpose()
transpose computes the transposed matrix.
◆ data
float pic::Matrix3x3::data[9] |
The documentation for this class was generated from the following file: