- Quaternions
- Started Tests for Quaternions - Fixed some style issues with constructors
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <fennec/math/common.h>
|
||||
#include <fennec/math/matrix.h>
|
||||
#include <fennec/math/relational.h>
|
||||
#include <fennec/math/ext/quaternion.h>
|
||||
|
||||
namespace fennec
|
||||
{
|
||||
@@ -52,6 +53,11 @@ inline std::ostream& operator<<(std::ostream& os, const matrix<ScalarT, RowsV, C
|
||||
return os;
|
||||
}
|
||||
|
||||
template<typename ScalarT>
|
||||
inline std::ostream& operator<<(std::ostream& os, const quaternion<ScalarT>& q) {
|
||||
return os << "< " << q.w << " + " << q.x << " i + " << q.y << " j + " << q.z << " k >";
|
||||
}
|
||||
|
||||
// Helper for printing strings
|
||||
inline std::ostream& operator<<(std::ostream& os, const cstring& str) {
|
||||
return os << *str;
|
||||
|
||||
Reference in New Issue
Block a user