quaternion.cpp 236 Bytes
Newer Older
Nick Sharp's avatar
Nick Sharp committed
1
2
3
4
5
6
7
8
9
10
#include "quaternion.h"

namespace CMU462 {

  std::ostream& operator<<( std::ostream& os, const Quaternion& v ) {
    os << "{ " << v.x << "i, " << v.y << "j, " << v.z << "k, " << v.w << " }";
    return os;
  }

} // namespace CMU462