Browse Source

Fixed orientate3 function #207

Christophe Riccio 11 years ago
parent
commit
ea45a7b966
2 changed files with 2 additions and 1 deletions
  1. 1 1
      glm/gtx/euler_angles.inl
  2. 1 0
      readme.txt

+ 1 - 1
glm/gtx/euler_angles.inl

@@ -250,7 +250,7 @@ namespace glm
 		detail::tvec3<T, P> const & angles
 	)
 	{
-		return detail::tmat3x3<T, P>(yawPitchRoll(angles.x, angles.y, angles.z));
+		return detail::tmat3x3<T, P>(yawPitchRoll(angles.z, angles.x, angles.y));
 	}
 
 	template <typename T, precision P>

+ 1 - 0
readme.txt

@@ -47,6 +47,7 @@ GLM 0.9.5.4: 2014-0X-XX
 - Optimized Quaternion vector rotation #205
 - Fixed missing doxygen @endcond tag #211
 - Fixed instruction set detection with Clang #158
+- Fixed orientate3 function #207
 
 ================================================================================
 GLM 0.9.5.3: 2014-04-02