diff --git a/glm/gtc/quaternion.inl b/glm/gtc/quaternion.inl index e83ddc56..e3bf3505 100644 --- a/glm/gtc/quaternion.inl +++ b/glm/gtc/quaternion.inl @@ -238,6 +238,29 @@ namespace detail{ q.w / s, q.x / s, q.y / s, q.z / s); } + ////////////////////////////////////// + // Boolean operators + + template + inline bool operator== + ( + detail::tquat const & q1, + detail::tquat const & q2 + ) + { + return (q1.x == q2.x) && (q1.y == q2.y) && (q1.z == q2.z) && (q1.w == q2.w); + } + + template + inline bool operator!= + ( + detail::tquat const & q1, + detail::tquat const & q2 + ) + { + return (q1.x != q2.x) || (q1.y != q2.y) || (q1.z != q2.z) || (q1.w != q2.w); + } + }//namespace detail namespace gtc{