Christophe Riccio 11 years ago
parent
commit
6a50a87a75
3 changed files with 11 additions and 12 deletions
  1. 5 5
      glm/gtc/matrix_access.hpp
  2. 4 4
      glm/gtc/matrix_access.inl
  3. 2 3
      glm/gtc/matrix_inverse.hpp

+ 5 - 5
glm/gtc/matrix_access.hpp

@@ -52,15 +52,15 @@ namespace glm
 	/// @see gtc_matrix_access
 	template <typename genType>
 	GLM_FUNC_DECL typename genType::row_type row(
-		genType const & m, 
-		length_t const & index);
+		genType const & m,
+		length_t index);
 
 	/// Set a specific row to a matrix.
 	/// @see gtc_matrix_access
 	template <typename genType>
 	GLM_FUNC_DECL genType row(
 		genType const & m,
-		length_t const & index,
+		length_t index,
 		typename genType::row_type const & x);
 
 	/// Get a specific column of a matrix.
@@ -68,14 +68,14 @@ namespace glm
 	template <typename genType>
 	GLM_FUNC_DECL typename genType::col_type column(
 		genType const & m,
-		length_t const & index);
+		length_t index);
 
 	/// Set a specific column to a matrix.
 	/// @see gtc_matrix_access
 	template <typename genType>
 	GLM_FUNC_DECL genType column(
 		genType const & m,
-		length_t const & index,
+		length_t index,
 		typename genType::col_type const & x);
 
 	/// @}

+ 4 - 4
glm/gtc/matrix_access.inl

@@ -32,7 +32,7 @@ namespace glm
 	GLM_FUNC_QUALIFIER genType row
 	(
 		genType const & m,
-		length_t const & index,
+		length_t index,
 		typename genType::row_type const & x
 	)
 	{
@@ -48,7 +48,7 @@ namespace glm
 	GLM_FUNC_QUALIFIER typename genType::row_type row
 	(
 		genType const & m,
-		length_t const & index
+		length_t index
 	)
 	{
 		assert(index >= 0 && static_cast<detail::component_count_t>(index) < detail::component_count(m[0]));
@@ -63,7 +63,7 @@ namespace glm
 	GLM_FUNC_QUALIFIER genType column
 	(
 		genType const & m,
-		length_t const & index,
+		length_t index,
 		typename genType::col_type const & x
 	)
 	{
@@ -78,7 +78,7 @@ namespace glm
 	GLM_FUNC_QUALIFIER typename genType::col_type column
 	(
 		genType const & m,
-		length_t const & index
+		length_t index
 	)
 	{
 		assert(index >= 0 && static_cast<detail::component_count_t>(index) < detail::component_count(m));

+ 2 - 3
glm/gtc/matrix_inverse.hpp

@@ -61,9 +61,8 @@ namespace glm
 	/// @param m Input matrix to invert transpose.
 	/// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-precision floating point value is highly innacurate.
 	/// @see gtc_matrix_inverse
-	template <typename genType> 
-	GLM_FUNC_DECL typename genType::value_type inverseTranspose(
-		genType const & m);
+	template <typename genType>
+	GLM_FUNC_DECL genType inverseTranspose(genType const & m);
 
 	/// @}
 }//namespace glm