|
SDL Breakout Engine
0.1.0
An implementation of a Breakout game using sdl, implemented with efficient resource management.
|
#include <TinyMath.hpp>
Public Member Functions | |
| Matrix3D () = default | |
| Default constructor. More... | |
| Matrix3D (float n00, float n01, float n02, float n10, float n11, float n12, float n20, float n21, float n22) | |
| Matrix3D (const Vector3D &a, const Vector3D &b, const Vector3D &c) | |
| float & | operator () (int i, int j) |
| const float & | operator () (int i, int j) const |
| Vector3D & | operator[] (int i) |
| const Vector3D & | operator[] (int i) const |
| Vector3D | column (int j) |
| Vector3D | column (int j) const |
| bool | operator== (const Matrix3D &other) |
| bool | equals (const Matrix3D &other, float tolerance) |
Matrix 3D represents 3x3 matrices in Math
|
default |
Default constructor.
|
inline |
[ a1 a2 a3 -> vector 1 b1 b2 b3 -> vector 2 c1 c2 c3 -> vector 3 ]
a1 = 00 b3 = 12
01 is row 0, column 1
| n00 | el |
| n01 | el |
| n02 | el |
| n10 | el |
| n11 | el |
| n12 | el |
| n20 | el |
| n21 | el |
| n22 | el |
Matrix constructor from three vectors.
| a | vector1 |
| b | vector2 |
| c | vector3 |
|
inline |
Return a matrix column.
| j | column |
|
inline |
Return a matrix column.
| j | column |
|
inline |
Checks equality within a certain tolerance with the given matrix.
| other | matrix2 |
| tolerance | tolerance |
|
inline |
Index operator with two dimensions row, then column
| i | row |
| j | column |
|
inline |
Index operator with two dimensions row, then column
| i | row |
| j | column |
|
inline |
Checks exact equality with the given matrix.
| other | matrix2 |
|
inline |
Return a row from a matrix as a vector.
| i | row |
|
inline |
Return a row from a matrix as a vector.
| i | row |
1.4.1