From 6d3d07d3c1ce960ac0e175ff2c791680182af718 Mon Sep 17 00:00:00 2001 From: CaptainCarrot Date: Tue, 21 Nov 2017 19:54:15 +0100 Subject: [PATCH] Add files via upload --- glm/gtc/quaternion.hpp | 3 +++ glm/gtc/quaternion.inl | 7 +++++++ 2 files changed, 10 insertions(+) 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) {