Browse Source

Merge pull request #436 from taketwo/add-const

Add const qualifier in extractEulerAngleXYZ() #436
Christophe R 10 years ago
parent
commit
3a960f2afb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      glm/gtx/euler_angles.hpp
  2. 1 1
      glm/gtx/euler_angles.inl

+ 1 - 1
glm/gtx/euler_angles.hpp

@@ -161,7 +161,7 @@ namespace glm
     /// Extracts the (X * Y * Z) Euler angles from the rotation matrix M
     /// Extracts the (X * Y * Z) Euler angles from the rotation matrix M
     /// @see gtx_euler_angles
     /// @see gtx_euler_angles
     template <typename T>
     template <typename T>
-    GLM_FUNC_DECL void extractEulerAngleXYZ(tmat4x4<T, defaultp> & M,
+    GLM_FUNC_DECL void extractEulerAngleXYZ(tmat4x4<T, defaultp> const & M,
                                             T & t1,
                                             T & t1,
                                             T & t2,
                                             T & t2,
                                             T & t3);
                                             T & t3);

+ 1 - 1
glm/gtx/euler_angles.inl

@@ -323,7 +323,7 @@ namespace glm
 	}
 	}
     
     
     template <typename T>
     template <typename T>
-    GLM_FUNC_DECL void extractEulerAngleXYZ(tmat4x4<T, defaultp> & M,
+    GLM_FUNC_DECL void extractEulerAngleXYZ(tmat4x4<T, defaultp> const & M,
                                             T & t1,
                                             T & t1,
                                             T & t2,
                                             T & t2,
                                             T & t3)
                                             T & t3)