diff --git a/glm/gtc/matrix_transform.hpp b/glm/gtc/matrix_transform.hpp index 952ac4ed..83f22b0d 100644 --- a/glm/gtc/matrix_transform.hpp +++ b/glm/gtc/matrix_transform.hpp @@ -100,7 +100,7 @@ namespace glm template GLM_FUNC_DECL tmat4x4 rotate( tmat4x4 const & m, - T const & angle, + T angle, tvec3 const & axis); /// Builds a scale 4 * 4 matrix created from 3 scalars. @@ -131,12 +131,12 @@ namespace glm /// @see - glm::ortho(T const & left, T const & right, T const & bottom, T const & top) template GLM_FUNC_DECL tmat4x4 ortho( - T const & left, - T const & right, - T const & bottom, - T const & top, - T const & zNear, - T const & zFar); + T left, + T right, + T bottom, + T top, + T zNear, + T zFar); /// Creates a matrix for projecting two-dimensional coordinates onto the screen. /// @@ -149,10 +149,10 @@ namespace glm /// @see - glm::ortho(T const & left, T const & right, T const & bottom, T const & top, T const & zNear, T const & zFar) template GLM_FUNC_DECL tmat4x4 ortho( - T const & left, - T const & right, - T const & bottom, - T const & top); + T left, + T right, + T bottom, + T top); /// Creates a frustum matrix. /// @@ -166,12 +166,12 @@ namespace glm /// @see gtc_matrix_transform template GLM_FUNC_DECL tmat4x4 frustum( - T const & left, - T const & right, - T const & bottom, - T const & top, - T const & near, - T const & far); + T left, + T right, + T bottom, + T top, + T near, + T far); /// Creates a matrix for a symetric perspective-view frustum. /// @@ -183,10 +183,10 @@ namespace glm /// @see gtc_matrix_transform template GLM_FUNC_DECL tmat4x4 perspective( - T const & fovy, - T const & aspect, - T const & near, - T const & far); + T fovy, + T aspect, + T near, + T far); /// Builds a perspective projection matrix based on a field of view. /// @@ -199,11 +199,11 @@ namespace glm /// @see gtc_matrix_transform template GLM_FUNC_DECL tmat4x4 perspectiveFov( - T const & fov, - T const & width, - T const & height, - T const & near, - T const & far); + T fov, + T width, + T height, + T near, + T far); /// Creates a matrix for a symmetric perspective-view frustum with far plane at infinite. /// diff --git a/glm/gtc/matrix_transform.inl b/glm/gtc/matrix_transform.inl index 4c8ac722..fa8d3e34 100644 --- a/glm/gtc/matrix_transform.inl +++ b/glm/gtc/matrix_transform.inl @@ -48,7 +48,7 @@ namespace glm GLM_FUNC_QUALIFIER tmat4x4 rotate ( tmat4x4 const & m, - T const & angle, + T angle, tvec3 const & v ) { @@ -84,7 +84,7 @@ namespace glm GLM_FUNC_QUALIFIER tmat4x4 rotate_slow ( tmat4x4 const & m, - T const & angle, + T angle, tvec3 const & v ) { @@ -146,12 +146,12 @@ namespace glm template GLM_FUNC_QUALIFIER tmat4x4 ortho ( - T const & left, - T const & right, - T const & bottom, - T const & top, - T const & zNear, - T const & zFar + T left, + T right, + T bottom, + T top, + T zNear, + T zFar ) { tmat4x4 Result(1); @@ -167,10 +167,10 @@ namespace glm template GLM_FUNC_QUALIFIER tmat4x4 ortho ( - T const & left, - T const & right, - T const & bottom, - T const & top + T left, + T right, + T bottom, + T top ) { tmat4x4 Result(1); @@ -185,12 +185,12 @@ namespace glm template GLM_FUNC_QUALIFIER tmat4x4 frustum ( - T const & left, - T const & right, - T const & bottom, - T const & top, - T const & nearVal, - T const & farVal + T left, + T right, + T bottom, + T top, + T nearVal, + T farVal ) { tmat4x4 Result(0); @@ -207,10 +207,10 @@ namespace glm template GLM_FUNC_QUALIFIER tmat4x4 perspective ( - T const & fovy, - T const & aspect, - T const & zNear, - T const & zFar + T fovy, + T aspect, + T zNear, + T zFar ) { assert(aspect != static_cast(0)); @@ -230,11 +230,11 @@ namespace glm template GLM_FUNC_QUALIFIER tmat4x4 perspectiveFov ( - T const & fov, - T const & width, - T const & height, - T const & zNear, - T const & zFar + T fov, + T width, + T height, + T zNear, + T zFar ) { assert(width > static_cast(0));