Wildvine Engine
Referencia Doxygen del codigo propio de Wildvine Engine.
Cargando...
Buscando...
Nada coincide
Referencia de la clase EU::Matrix3x3

A 3x3 matrix class. Más...

#include <Matrix3x3.h>

Métodos públicos

float determinant () const
 Calculates the determinant of the matrix.
 
Matrix3x3 inverse () const
 Calculates the inverse of the matrix.
 
 Matrix3x3 ()
 Default constructor.
 
 Matrix3x3 (float a11, float a12, float a13, float a21, float a22, float a23, float a31, float a32, float a33)
 Parameterized constructor.
 
Matrix3x3 operator* (const Matrix3x3 &other) const
 Multiplies this matrix by another matrix.
 
Matrix3x3 operator* (float scalar) const
 Multiplies this matrix by a scalar.
 
Matrix3x3 operator+ (const Matrix3x3 &other) const
 Adds another matrix to this matrix.
 
Matrix3x3 operator- (const Matrix3x3 &other) const
 Subtracts another matrix from this matrix.
 

Atributos públicos

float m [3][3]
 The elements of the matrix.
 

Descripción detallada

This class represents a 3x3 matrix and provides basic matrix operations such as addition, subtraction, multiplication, determinant calculation, and inversion.

Definición en la línea 42 del archivo Matrix3x3.h.

Documentación de constructores y destructores

◆ Matrix3x3() [1/2]

EU::Matrix3x3::Matrix3x3 ( )
inline

Initializes the matrix to the identity matrix.

Definición en la línea 51 del archivo Matrix3x3.h.

Hace referencia a m.

Referenciado por inverse(), operator*(), operator*(), operator+() y operator-().

◆ Matrix3x3() [2/2]

EU::Matrix3x3::Matrix3x3 ( float  a11,
float  a12,
float  a13,
float  a21,
float  a22,
float  a23,
float  a31,
float  a32,
float  a33 
)
inline

Initializes the matrix with the given values.

Parámetros
a11Element at row 1, column 1.
a12Element at row 1, column 2.
a13Element at row 1, column 3.
a21Element at row 2, column 1.
a22Element at row 2, column 2.
a23Element at row 2, column 3.
a31Element at row 3, column 1.
a32Element at row 3, column 2.
a33Element at row 3, column 3.

Definición en la línea 72 del archivo Matrix3x3.h.

Hace referencia a m.

Documentación de funciones miembro

◆ determinant()

float EU::Matrix3x3::determinant ( ) const
inline
Devuelve
The determinant of the matrix.

Definición en la línea 139 del archivo Matrix3x3.h.

Hace referencia a m.

Referenciado por inverse().

◆ inverse()

Matrix3x3 EU::Matrix3x3::inverse ( ) const
inline
Devuelve
The inverse of the matrix.

Definición en la línea 150 del archivo Matrix3x3.h.

Hace referencia a determinant(), m y Matrix3x3().

◆ operator*() [1/2]

Matrix3x3 EU::Matrix3x3::operator* ( const Matrix3x3 other) const
inline
Parámetros
otherThe matrix to multiply by.
Devuelve
The result of the multiplication.

Definición en la línea 112 del archivo Matrix3x3.h.

Hace referencia a m y Matrix3x3().

◆ operator*() [2/2]

Matrix3x3 EU::Matrix3x3::operator* ( float  scalar) const
inline
Parámetros
scalarThe scalar to multiply by.
Devuelve
The result of the multiplication.

Definición en la línea 126 del archivo Matrix3x3.h.

Hace referencia a m y Matrix3x3().

◆ operator+()

Matrix3x3 EU::Matrix3x3::operator+ ( const Matrix3x3 other) const
inline
Parámetros
otherThe matrix to add.
Devuelve
The result of the addition.

Definición en la línea 84 del archivo Matrix3x3.h.

Hace referencia a m y Matrix3x3().

◆ operator-()

Matrix3x3 EU::Matrix3x3::operator- ( const Matrix3x3 other) const
inline
Parámetros
otherThe matrix to subtract.
Devuelve
The result of the subtraction.

Definición en la línea 98 del archivo Matrix3x3.h.

Hace referencia a m y Matrix3x3().

Documentación de datos miembro

◆ m

float EU::Matrix3x3::m[3][3]

Definición en la línea 44 del archivo Matrix3x3.h.

Referenciado por determinant(), inverse(), Matrix3x3(), Matrix3x3(), operator*(), operator*(), operator+() y operator-().


La documentación de esta clase está generada del siguiente archivo: