Browse Source

Add missing boolean operator declarations

Sami Kankaristo 9 years ago
parent
commit
ece2b8b5a2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      glm/gtc/quaternion.hpp

+ 8 - 0
glm/gtc/quaternion.hpp

@@ -184,6 +184,14 @@ namespace glm
 	template <typename T, precision P>
 	template <typename T, precision P>
 	GLM_FUNC_DECL tquat<T, P> operator/(tquat<T, P> const & q, T const & s);
 	GLM_FUNC_DECL tquat<T, P> operator/(tquat<T, P> const & q, T const & s);
 
 
+	// -- Boolean operators --
+
+	template <typename T, precision P>
+	GLM_FUNC_DECL bool operator==(tquat<T, P> const & q1, tquat<T, P> const & q2);
+
+	template <typename T, precision P>
+	GLM_FUNC_DECL bool operator!=(tquat<T, P> const & q1, tquat<T, P> const & q2);
+
 	/// Returns the length of the quaternion.
 	/// Returns the length of the quaternion.
 	/// 
 	/// 
 	/// @see gtc_quaternion
 	/// @see gtc_quaternion