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

A 2x2 matrix class. Más...

#include <Matrix2x2.h>

Métodos públicos

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

Atributos públicos

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

Descripción detallada

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

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

Documentación de constructores y destructores

◆ Matrix2x2() [1/2]

EU::Matrix2x2::Matrix2x2 ( )
inline

Initializes the matrix to the identity matrix.

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

Hace referencia a m.

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

◆ Matrix2x2() [2/2]

EU::Matrix2x2::Matrix2x2 ( float  a11,
float  a12,
float  a21,
float  a22 
)
inline

Initializes the matrix with the given values.

Parámetros
a11Element at row 1, column 1.
a12Element at row 1, column 2.
a21Element at row 2, column 1.
a22Element at row 2, column 2.

Definición en la línea 66 del archivo Matrix2x2.h.

Hace referencia a m.

Documentación de funciones miembro

◆ determinant()

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

Definición en la línea 128 del archivo Matrix2x2.h.

Hace referencia a m.

Referenciado por inverse().

◆ inverse()

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

Definición en la línea 137 del archivo Matrix2x2.h.

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

◆ operator*() [1/2]

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

Definición en la línea 103 del archivo Matrix2x2.h.

Hace referencia a m y Matrix2x2().

◆ operator*() [2/2]

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

Definición en la línea 116 del archivo Matrix2x2.h.

Hace referencia a m y Matrix2x2().

◆ operator+()

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

Definición en la línea 77 del archivo Matrix2x2.h.

Hace referencia a m y Matrix2x2().

◆ operator-()

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

Definición en la línea 90 del archivo Matrix2x2.h.

Hace referencia a m y Matrix2x2().

Documentación de datos miembro

◆ m

float EU::Matrix2x2::m[2][2]

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

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


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