# | Line 260 | Line 260 | namespace oopse { | |
---|---|---|
260 | ||
261 | return(x + y + z); | |
262 | } | |
263 | + | |
264 | + | /** Returns the trace of this matrix. */ |
265 | + | Real trace() const { |
266 | + | return data_[0][0] + data_[1][1] + data_[2][2]; |
267 | + | } |
268 | ||
269 | /** | |
270 | * Sets the value of this matrix to the inversion of itself. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |