diff --git a/glm/gtc/quaternion.hpp b/glm/gtc/quaternion.hpp index b43ec04d..507cf3d4 100644 --- a/glm/gtc/quaternion.hpp +++ b/glm/gtc/quaternion.hpp @@ -142,6 +142,9 @@ namespace glm template GLM_FUNC_DECL tquat operator+(tquat const& q, tquat const& p); + template + GLM_FUNC_DECL tquat operator-(tquat const& q, tquat const& p); + template GLM_FUNC_DECL tquat operator*(tquat const& q, tquat const& p); diff --git a/glm/gtc/quaternion.inl b/glm/gtc/quaternion.inl index 56f943c8..9f1036bd 100644 --- a/glm/gtc/quaternion.inl +++ b/glm/gtc/quaternion.inl @@ -308,6 +308,13 @@ namespace detail return tquat(q) += p; } + + template + GLM_FUNC_QUALIFIER tquat operator-(tquat const& q, tquat const& p) + { + return tquat(q) -= p; + } + template GLM_FUNC_QUALIFIER tquat operator*(tquat const& q, tquat const& p) {