|
|
@ -108,24 +108,19 @@ namespace glm |
|
|
|
GLM_FUNC_DECL tquat(T const & w, T const & x, T const & y, T const & z); |
|
|
|
GLM_FUNC_DECL tquat(T const & w, T const & x, T const & y, T const & z); |
|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////
|
|
|
|
//////////////////////////////////////
|
|
|
|
// Convertions
|
|
|
|
// Conversions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename U, precision Q> |
|
|
|
|
|
|
|
GLM_FUNC_DECL GLM_EXPLICIT_CTOR_MAYBE tquat(tquat<U, Q> const & q); |
|
|
|
|
|
|
|
|
|
|
|
# ifdef GLM_FORCE_EXPLICIT_CTOR |
|
|
|
|
|
|
|
template <typename U, precision Q> |
|
|
|
|
|
|
|
GLM_FUNC_DECL explicit tquat(tquat<U, Q> const & q); |
|
|
|
|
|
|
|
# else |
|
|
|
|
|
|
|
template <typename U, precision Q> |
|
|
|
|
|
|
|
GLM_FUNC_DECL tquat(tquat<U, Q> const & q); |
|
|
|
|
|
|
|
# endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// explicit conversion operators
|
|
|
|
// explicit conversion operators
|
|
|
|
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS |
|
|
|
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS |
|
|
|
GLM_FUNC_DECL explicit operator tmat3x3<T, P>(); |
|
|
|
GLM_FUNC_DECL explicit operator tmat3x3<T, P>(); |
|
|
|
GLM_FUNC_DECL explicit operator tmat4x4<T, P>(); |
|
|
|
GLM_FUNC_DECL explicit operator tmat4x4<T, P>(); |
|
|
|
# endif |
|
|
|
# endif |
|
|
|
|
|
|
|
|
|
|
|
/// 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
|
|
|
|
/// @param v A second normalized axis
|
|
|
|
/// @param v A second normalized axis
|
|
|
|
/// @see gtc_quaternion
|
|
|
|
/// @see gtc_quaternion
|
|
|
|