Revert "Merge pull request #1074 from szabolcsdombi/quaternion-constructor-parameters-fix"

This reverts commit f0066a2acf, reversing
changes made to 84f2045a79.
This commit is contained in:
Gottfried Leibniz 2023-01-04 19:24:37 -04:00
parent fc8f4bb442
commit b4ab8585bd
2 changed files with 4 additions and 10 deletions

View File

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

View File

@ -141,13 +141,12 @@ namespace detail
{}
template <typename T, qualifier Q>
# ifdef GLM_FORCE_QUAT_DATA_XYZW
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)
# else
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua<T, Q>::qua(T _w, T _x, T _y, T _z)
# ifdef GLM_FORCE_QUAT_DATA_XYZW
: x(_x), y(_y), z(_z), w(_w)
# else
: w(_w), x(_x), y(_y), z(_z)
# endif
# endif
{}
// -- Conversion constructors --