- Quaternions

- Started Tests for Quaternions
 - Fixed some style issues with constructors
This commit is contained in:
2025-07-16 23:16:54 -04:00
parent f1552b89b1
commit c72d1afe32
17 changed files with 690 additions and 133 deletions

View File

@@ -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;