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

Function operator-

include/reactphysics3d/mathematics/Matrix2x2.h:252–257  ·  view source on GitHub ↗

Overloaded operator for substraction

Source from the content-addressed store, hash-verified

250
251// Overloaded operator for substraction
252RP3D_FORCE_INLINE Matrix2x2 operator-(const Matrix2x2& matrix1, const Matrix2x2& matrix2) {
253 return Matrix2x2(matrix1.mRows[0][0] - matrix2.mRows[0][0],
254 matrix1.mRows[0][1] - matrix2.mRows[0][1],
255 matrix1.mRows[1][0] - matrix2.mRows[1][0],
256 matrix1.mRows[1][1] - matrix2.mRows[1][1]);
257}
258
259// Overloaded operator for the negative of the matrix
260RP3D_FORCE_INLINE Matrix2x2 operator-(const Matrix2x2& matrix) {

Callers

nothing calls this directly

Calls 1

Matrix2x2Class · 0.85

Tested by

no test coverage detected