diff --git a/glm/gtc/reciprocal.inl b/glm/gtc/reciprocal.inl index 48cff39d..e40eb7f3 100644 --- a/glm/gtc/reciprocal.inl +++ b/glm/gtc/reciprocal.inl @@ -37,7 +37,7 @@ namespace glm { // sec template - GLM_FUNC_QUALIFIER genType sec(genType const & angle) + GLM_FUNC_QUALIFIER genType sec(genType angle) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'sec' only accept floating-point values"); return genType(1) / glm::cos(angle); @@ -52,7 +52,7 @@ namespace glm // csc template - GLM_FUNC_QUALIFIER genType csc(genType const & angle) + GLM_FUNC_QUALIFIER genType csc(genType angle) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'csc' only accept floating-point values"); return genType(1) / glm::sin(angle); @@ -84,7 +84,7 @@ namespace glm // asec template - GLM_FUNC_QUALIFIER genType asec(genType const & angle) + GLM_FUNC_QUALIFIER genType asec(genType x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'asec' only accept floating-point values"); return acos(genType(1) / x); @@ -99,7 +99,7 @@ namespace glm // acsc template - GLM_FUNC_QUALIFIER genType acsc(genType const & angle) + GLM_FUNC_QUALIFIER genType acsc(genType x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acsc' only accept floating-point values"); return asin(genType(1) / x); @@ -114,7 +114,7 @@ namespace glm // acot template - GLM_FUNC_QUALIFIER genType acot(genType const & angle) + GLM_FUNC_QUALIFIER genType acot(genType x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acot' only accept floating-point values"); @@ -131,7 +131,7 @@ namespace glm // sech template - GLM_FUNC_QUALIFIER genType sech(genType const & angle) + GLM_FUNC_QUALIFIER genType sech(genType angle) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'sech' only accept floating-point values"); return genType(1) / glm::cosh(angle); @@ -146,7 +146,7 @@ namespace glm // csch template - GLM_FUNC_QUALIFIER genType csch(genType const & angle) + GLM_FUNC_QUALIFIER genType csch(genType angle) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'csch' only accept floating-point values"); return genType(1) / glm::sinh(angle); @@ -161,7 +161,7 @@ namespace glm // coth template - GLM_FUNC_QUALIFIER genType coth(genType const & angle) + GLM_FUNC_QUALIFIER genType coth(genType angle) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'coth' only accept floating-point values"); return glm::cosh(angle) / glm::sinh(angle); @@ -176,7 +176,7 @@ namespace glm // asech template - GLM_FUNC_QUALIFIER genType asech(genType const & angle) + GLM_FUNC_QUALIFIER genType asech(genType x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'asech' only accept floating-point values"); return acosh(genType(1) / x); @@ -191,7 +191,7 @@ namespace glm // acsch template - GLM_FUNC_QUALIFIER genType acsch(genType const & angle) + GLM_FUNC_QUALIFIER genType acsch(genType x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acsch' only accept floating-point values"); return acsch(genType(1) / x); @@ -206,7 +206,7 @@ namespace glm // acoth template - GLM_FUNC_QUALIFIER genType acoth(genType const & angle) + GLM_FUNC_QUALIFIER genType acoth(genType x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acoth' only accept floating-point values"); return atanh(genType(1) / x);