Add static components and prec members to all vector and quaternion types

This commit is contained in:
Jesse Talavera-Greenberg
2015-07-03 14:57:46 -04:00
parent 98a736bcf1
commit a9c26d065b
13 changed files with 158 additions and 90 deletions

View File

@@ -64,6 +64,13 @@ namespace glm
{
typedef tquat<T, P> type;
typedef T value_type;
# if GLM_HAS_CONSTEXPR
static GLM_CONSTEXPR length_t components = 4;
static GLM_CONSTEXPR precision prec = P;
# else
static const length_t components = 4;
static const precision prec = P;
# endif
public:
T x, y, z, w;