Overloaded operator for substraction
| 271 | |
| 272 | // Overloaded operator for substraction |
| 273 | RP3D_FORCE_INLINE Matrix3x3 operator-(const Matrix3x3& matrix1, const Matrix3x3& matrix2) { |
| 274 | return Matrix3x3(matrix1.mRows[0][0] - matrix2.mRows[0][0], matrix1.mRows[0][1] - |
| 275 | matrix2.mRows[0][1], matrix1.mRows[0][2] - matrix2.mRows[0][2], |
| 276 | matrix1.mRows[1][0] - matrix2.mRows[1][0], matrix1.mRows[1][1] - |
| 277 | matrix2.mRows[1][1], matrix1.mRows[1][2] - matrix2.mRows[1][2], |
| 278 | matrix1.mRows[2][0] - matrix2.mRows[2][0], matrix1.mRows[2][1] - |
| 279 | matrix2.mRows[2][1], matrix1.mRows[2][2] - matrix2.mRows[2][2]); |
| 280 | } |
| 281 | |
| 282 | // Overloaded operator for the negative of the matrix |
| 283 | RP3D_FORCE_INLINE Matrix3x3 operator-(const Matrix3x3& matrix) { |