Browse Source

updated comments

Christophe Riccio 12 years ago
parent
commit
ffbcd7f6bd
2 changed files with 12 additions and 3 deletions
  1. 4 3
      glm/gtc/quaternion.hpp
  2. 8 0
      test/gtx/gtx_simd_vec4.cpp

+ 4 - 3
glm/gtc/quaternion.hpp

@@ -258,25 +258,26 @@ namespace detail
 		detail::tvec3<T, P> 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 <typename T, precision P>
 	GLM_FUNC_DECL detail::tvec3<T, P> eulerAngles(
 		detail::tquat<T, P> 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 <typename T, precision P>
 	GLM_FUNC_DECL T roll(detail::tquat<T, P> 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 <typename T, precision P>
 	GLM_FUNC_DECL T pitch(detail::tquat<T, P> 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 <typename T, precision P>

+ 8 - 0
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;
 }