diff --git a/glm/gtc/quaternion.hpp b/glm/gtc/quaternion.hpp index 3acf6fbe..982d8e5d 100644 --- a/glm/gtc/quaternion.hpp +++ b/glm/gtc/quaternion.hpp @@ -258,25 +258,26 @@ namespace detail detail::tvec3 const & axis); /// Returns euler angles, yitch as x, yaw as y, roll as z. + /// The result is expressed in radians if GLM_FORCE_RADIANS is defined or degrees otherwise. /// /// @see gtc_quaternion template GLM_FUNC_DECL detail::tvec3 eulerAngles( detail::tquat const & x); - /// Returns roll value of euler angles expressed in radians if GLM_FORCE_RADIANS is define or degrees otherwise. + /// Returns roll value of euler angles expressed in radians if GLM_FORCE_RADIANS is defined or degrees otherwise. /// /// @see gtx_quaternion template GLM_FUNC_DECL T roll(detail::tquat const & x); - /// Returns pitch value of euler angles expressed in radians if GLM_FORCE_RADIANS is define or degrees otherwise. + /// Returns pitch value of euler angles expressed in radians if GLM_FORCE_RADIANS is defined or degrees otherwise. /// /// @see gtx_quaternion template GLM_FUNC_DECL T pitch(detail::tquat const & x); - /// Returns yaw value of euler angles expressed in radians if GLM_FORCE_RADIANS is define or degrees otherwise. + /// Returns yaw value of euler angles expressed in radians if GLM_FORCE_RADIANS is defined or degrees otherwise. /// /// @see gtx_quaternion template diff --git a/test/gtx/gtx_simd_vec4.cpp b/test/gtx/gtx_simd_vec4.cpp index 6f262196..debe6bf8 100644 --- a/test/gtx/gtx_simd_vec4.cpp +++ b/test/gtx/gtx_simd_vec4.cpp @@ -28,6 +28,14 @@ int main() //printf("C1(%2.3f, %2.3f, %2.3f, %2.3f)\n", C1.x, C1.y, C1.z, C1.w); //printf("D1(%2.3f, %2.3f, %2.3f, %2.3f)\n", D1.x, D1.y, D1.z, D1.w); + __m128 value; + __m128 data = _mm_cmpeq_ps(value, value); + __m128 add0 = _mm_add_ps(data, data); + + glm::simdVec4 GNI(add0); + + printf("%f\n", GNI.Data.m128_f32); + return 0; }