Added type to identify matrix, vector and quaternion at compile time

This commit is contained in:
Christophe Riccio
2015-10-01 23:09:06 +02:00
parent fa18ca7c2e
commit d23d909e6d
16 changed files with 158 additions and 0 deletions

View File

@@ -374,6 +374,16 @@ namespace glm
template <typename T, precision P>
GLM_FUNC_DECL tvec4<bool, P> notEqual(tquat<T, P> const & x, tquat<T, P> const & y);
/// @}
// -- Is type --
template <typename T, precision P>
struct type<T, P, tquat>
{
static bool const is_vec = false;
static bool const is_mat = false;
static bool const is_quat = true;
};
} //namespace glm
#include "quaternion.inl"