Revert "Fix constructor of struct qua to honor macro "GLM_FORCE_QUAT_DATA_WXYZ""

This reverts commit f931c4996a.
This commit is contained in:
Gaoyang Zhang 2021-05-06 14:12:23 +08:00
parent f6f3596a6b
commit d573bf099a
2 changed files with 2 additions and 3 deletions

View File

@ -88,7 +88,7 @@ namespace glm
// -- Explicit basic constructors --
GLM_FUNC_DECL GLM_CONSTEXPR qua(T s, vec<3, T, Q> const& v);
GLM_FUNC_DECL GLM_CONSTEXPR qua(T, T, T, T);
GLM_FUNC_DECL GLM_CONSTEXPR qua(T w, T x, T y, T z);
// -- Conversion constructors --

View File

@ -141,11 +141,10 @@ namespace detail
{}
template <typename T, qualifier Q>
# ifdef GLM_FORCE_QUAT_DATA_WXYZ
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua<T, Q>::qua(T _w, T _x, T _y, T _z)
# ifdef GLM_FORCE_QUAT_DATA_WXYZ
: w(_w), x(_x), y(_y), z(_z)
# else
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua<T, Q>::qua(T _x, T _y, T _z, T _w)
: x(_x), y(_y), z(_z), w(_w)
# endif
{}