From e96ef7af323009ef3690c650ba6aae168e42d277 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 17 Oct 2016 22:14:57 +1100 Subject: [PATCH] quaternion: move out of coord infrastructure --- Makefile.am | 1 + coord/fwd.hpp | 1 - coord/ops.hpp | 3 -- quaternion.cpp | 127 +++++++++++++++++++++----------------------- quaternion.hpp | 110 +++++++++++++++++++++++++++----------- quaternion.ipp | 99 ++++++++++++++++++++++++++++++++++ test/quaternion.cpp | 20 +++---- 7 files changed, 251 insertions(+), 110 deletions(-) create mode 100644 quaternion.ipp diff --git a/Makefile.am b/Makefile.am index a9157056..a443ef24 100644 --- a/Makefile.am +++ b/Makefile.am @@ -206,6 +206,7 @@ UTIL_FILES = \ preprocessor.hpp \ quaternion.cpp \ quaternion.hpp \ + quaternion.ipp \ raii.hpp \ rand/lcg.cpp \ rand/lcg.hpp \ diff --git a/coord/fwd.hpp b/coord/fwd.hpp index 3d144148..e1c3347e 100644 --- a/coord/fwd.hpp +++ b/coord/fwd.hpp @@ -21,7 +21,6 @@ namespace util { template struct colour; template struct extent; template struct point; - template struct quaternion; template struct vector; } diff --git a/coord/ops.hpp b/coord/ops.hpp index 5ce9b01c..2484ba92 100644 --- a/coord/ops.hpp +++ b/coord/ops.hpp @@ -58,7 +58,6 @@ namespace util { struct has_norm : public std::false_type { }; template <> struct has_norm : public std::true_type { }; - template <> struct has_norm : public std::true_type { }; template