MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / operator +

Method operator +

3rd_party/Src/ode/ode/src/mat.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128dMatrix dMatrix::operator + (const dMatrix &a)
129{
130 if (n != a.n || m != a.m) dDebug (0,"matrix +, mismatched sizes");
131 dMatrix r (n,m);
132 for (int i=0; i<n*m; i++) r.data[i] = data[i] + a.data[i];
133 return r;
134}
135
136
137dMatrix dMatrix::operator - (const dMatrix &a)

Callers

nothing calls this directly

Calls 1

dDebugFunction · 0.85

Tested by

no test coverage detected