Browse Source

Update quaternion.hpp

plasmacel 11 years ago
parent
commit
3b3dcd7d03
1 changed files with 5 additions and 1 deletions
  1. 5 1
      glm/gtc/quaternion.hpp

+ 5 - 1
glm/gtc/quaternion.hpp

@@ -102,7 +102,11 @@ namespace glm
 			template <typename U, precision Q>
 			template <typename U, precision Q>
 			GLM_FUNC_DECL tquat(tquat<U, Q> const & q);
 			GLM_FUNC_DECL tquat(tquat<U, Q> const & q);
 #		endif
 #		endif
-
+		
+		// explicit conversion operators
+		GLM_FUNC_DECL explicit operator tmat3<T, P>();
+		GLM_FUNC_DECL explicit operator tmat4<T, P>();
+		
 		/// Create a quaternion from two normalized axis
 		/// Create a quaternion from two normalized axis
 		/// 
 		/// 
 		/// @param u A first normalized axis
 		/// @param u A first normalized axis