You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

matrixdebug.hxx 393B

12345678910111213
  1. #include "matrixdebug.h"
  2. uge_gm_tmpl_mn QDebug operator<<(QDebug dbg, const MatrixMxN<M, N> &v)
  3. {
  4. QDebug d = dbg.nospace();
  5. for (int i = 0; i < M; ++i) {
  6. for (int j = 0; j < N; ++j) {
  7. d << v.getScalar(i, j) << (j == N - 1 ? "" : " ");
  8. }
  9. d << "\n";
  10. }
  11. return dbg.nospace() << "(" << v.getX() << ", " << v.getY() << ", " << v.getZ() << ")";
  12. }