diff --git a/doc/glm-manual.doc b/doc/glm-manual.doc deleted file mode 100644 index 6d3b144d..00000000 Binary files a/doc/glm-manual.doc and /dev/null differ diff --git a/doc/src/data.xml b/doc/src/data.xml index a813cc8e..13e6969b 100644 --- a/doc/src/data.xml +++ b/doc/src/data.xml @@ -1,8 +1,9 @@ - +
+ @@ -54,6 +55,7 @@
+ @@ -1536,6 +1538,16 @@ + + + GLM 0.9.0.7 provides 2 main changes: GLSL 4.10 packing functions but also == and != operators for every types. + + + GLM 0.9.0.7 (zip, 1.4 MB) + GLM 0.9.0.7 (7z, 832 KB) + Submit a bug report + + GLM 0.9.0.6 is a new update of GLM built over GLM's user bug reports. 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{