Overloaded operator for addition
| 261 | |
| 262 | // Overloaded operator for addition |
| 263 | RP3D_FORCE_INLINE Matrix3x3 operator+(const Matrix3x3& matrix1, const Matrix3x3& matrix2) { |
| 264 | return Matrix3x3(matrix1.mRows[0][0] + matrix2.mRows[0][0], matrix1.mRows[0][1] + |
| 265 | matrix2.mRows[0][1], matrix1.mRows[0][2] + matrix2.mRows[0][2], |
| 266 | matrix1.mRows[1][0] + matrix2.mRows[1][0], matrix1.mRows[1][1] + |
| 267 | matrix2.mRows[1][1], matrix1.mRows[1][2] + matrix2.mRows[1][2], |
| 268 | matrix1.mRows[2][0] + matrix2.mRows[2][0], matrix1.mRows[2][1] + |
| 269 | matrix2.mRows[2][1], matrix1.mRows[2][2] + matrix2.mRows[2][2]); |
| 270 | } |
| 271 | |
| 272 | // Overloaded operator for substraction |
| 273 | RP3D_FORCE_INLINE Matrix3x3 operator-(const Matrix3x3& matrix1, const Matrix3x3& matrix2) { |