|
Wildvine Engine
Referencia Doxygen del codigo propio de Wildvine Engine.
|
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. | |
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.
|
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-().
|
inline |
Initializes the matrix with the given values.
| a11 | Element at row 1, column 1. |
| a12 | Element at row 1, column 2. |
| a21 | Element at row 2, column 1. |
| a22 | Element at row 2, column 2. |
Definición en la línea 66 del archivo Matrix2x2.h.
Hace referencia a m.
|
inline |
Definición en la línea 128 del archivo Matrix2x2.h.
Hace referencia a m.
Referenciado por inverse().
|
inline |
Definición en la línea 137 del archivo Matrix2x2.h.
Hace referencia a determinant(), m y Matrix2x2().
| other | The matrix to multiply by. |
Definición en la línea 103 del archivo Matrix2x2.h.
Hace referencia a m y Matrix2x2().
|
inline |
| scalar | The scalar to multiply by. |
Definición en la línea 116 del archivo Matrix2x2.h.
Hace referencia a m y Matrix2x2().
| other | The matrix to add. |
Definición en la línea 77 del archivo Matrix2x2.h.
Hace referencia a m y Matrix2x2().
| other | The matrix to subtract. |
Definición en la línea 90 del archivo Matrix2x2.h.
Hace referencia a m y Matrix2x2().
| 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-().