MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / operator-

Function operator-

include/reactphysics3d/mathematics/Matrix3x3.h:273–280  ·  view source on GitHub ↗

Overloaded operator for substraction

Source from the content-addressed store, hash-verified

271
272// Overloaded operator for substraction
273RP3D_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
283RP3D_FORCE_INLINE Matrix3x3 operator-(const Matrix3x3& matrix) {

Callers

nothing calls this directly

Calls 1

Matrix3x3Class · 0.70

Tested by

no test coverage detected