* Matrix type (OpenGL style 4x4 - right handed, column major) */
| 14 | * Matrix type (OpenGL style 4x4 - right handed, column major) |
| 15 | */ |
| 16 | class Matrix : public ::Matrix { |
| 17 | public: |
| 18 | constexpr Matrix(const ::Matrix& mat) |
| 19 | : ::Matrix(mat) { |
| 20 | // Nothing. |
| 21 | } |
| 22 | |
| 23 | constexpr Matrix( |
| 24 | float m0 = 0, |
| 25 | float m4 = 0, |
| 26 | float m8 = 0, |
| 27 | float m12 = 0, |
| 28 | float m1 = 0, |
| 29 | float m5 = 0, |
| 30 | float m9 = 0, |
| 31 | float m13 = 0, |
| 32 | float m2 = 0, |
| 33 | float m6 = 0, |
| 34 | float m10 = 0, |
| 35 | float m14 = 0, |
| 36 | float m3 = 0, |
| 37 | float m7 = 0, |
| 38 | float m11 = 0, |
| 39 | float m15 = 0) |
| 40 | : ::Matrix{m0, m4, m8, m12, m1, m5, m9, m13, m2, m6, m10, m14, m3, m7, m11, m15} { |
| 41 | // Nothing. |
| 42 | } |
| 43 | |
| 44 | GETTERSETTER(float, M0, m0) |
| 45 | GETTERSETTER(float, M1, m1) |
| 46 | GETTERSETTER(float, M2, m2) |
| 47 | GETTERSETTER(float, M3, m3) |
| 48 | GETTERSETTER(float, M4, m4) |
| 49 | GETTERSETTER(float, M5, m5) |
| 50 | GETTERSETTER(float, M6, m6) |
| 51 | GETTERSETTER(float, M7, m7) |
| 52 | GETTERSETTER(float, M8, m8) |
| 53 | GETTERSETTER(float, M9, m9) |
| 54 | GETTERSETTER(float, M10, m10) |
| 55 | GETTERSETTER(float, M11, m11) |
| 56 | GETTERSETTER(float, M12, m12) |
| 57 | GETTERSETTER(float, M13, m13) |
| 58 | GETTERSETTER(float, M14, m14) |
| 59 | GETTERSETTER(float, M15, m15) |
| 60 | |
| 61 | Matrix& operator=(const ::Matrix& matrix) { |
| 62 | if (this != &matrix) { |
| 63 | set(matrix); |
| 64 | } |
| 65 | return *this; |
| 66 | } |
| 67 | |
| 68 | Matrix& operator=(const Matrix& matrix) { |
| 69 | if (this != &matrix) { |
| 70 | set(matrix); |
| 71 | } |
| 72 | return *this; |
| 73 | } |
nothing calls this directly
no outgoing calls
no test coverage detected