From 6e191189e07ac80b227173f53af53d9055c708f2 Mon Sep 17 00:00:00 2001 From: Celestin de Villa Date: Thu, 13 Aug 2015 17:06:55 +0200 Subject: [PATCH] func body fixes --- glm/gtc/reciprocal.inl | 60 +++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/glm/gtc/reciprocal.inl b/glm/gtc/reciprocal.inl index 48cff39d..737d353e 100644 --- a/glm/gtc/reciprocal.inl +++ b/glm/gtc/reciprocal.inl @@ -44,10 +44,10 @@ namespace glm } template class vecType> - GLM_FUNC_QUALIFIER vecType sec(vecType const & x) + GLM_FUNC_QUALIFIER vecType sec(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'sec' only accept floating-point inputs"); - return detail::functor1::call(sec, x); + return detail::functor1::call(sec, v); } // csc @@ -59,10 +59,10 @@ namespace glm } template class vecType> - GLM_FUNC_QUALIFIER vecType csc(vecType const & x) + GLM_FUNC_QUALIFIER vecType csc(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'csc' only accept floating-point inputs"); - return detail::functor1::call(csc, x); + return detail::functor1::call(csc, v); } // cot @@ -76,45 +76,45 @@ namespace glm } template class vecType> - GLM_FUNC_QUALIFIER vecType cot(vecType const & x) + GLM_FUNC_QUALIFIER vecType cot(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'cot' only accept floating-point inputs"); - return detail::functor1::call(cot, x); + return detail::functor1::call(cot, v); } // asec template - GLM_FUNC_QUALIFIER genType asec(genType const & angle) + GLM_FUNC_QUALIFIER genType asec(genType const & x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'asec' only accept floating-point values"); return acos(genType(1) / x); } template class vecType> - GLM_FUNC_QUALIFIER vecType asec(vecType const & x) + GLM_FUNC_QUALIFIER vecType asec(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'asec' only accept floating-point inputs"); - return detail::functor1::call(asec, x); + return detail::functor1::call(asec, v); } // acsc template - GLM_FUNC_QUALIFIER genType acsc(genType const & angle) + GLM_FUNC_QUALIFIER genType acsc(genType const & x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acsc' only accept floating-point values"); return asin(genType(1) / x); } template class vecType> - GLM_FUNC_QUALIFIER vecType acsc(vecType const & x) + GLM_FUNC_QUALIFIER vecType acsc(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acsc' only accept floating-point inputs"); - return detail::functor1::call(acsc, x); + return detail::functor1::call(acsc, v); } // acot template - GLM_FUNC_QUALIFIER genType acot(genType const & angle) + GLM_FUNC_QUALIFIER genType acot(genType const & x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acot' only accept floating-point values"); @@ -123,10 +123,10 @@ namespace glm } template class vecType> - GLM_FUNC_QUALIFIER vecType acot(vecType const & x) + GLM_FUNC_QUALIFIER vecType acot(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acot' only accept floating-point inputs"); - return detail::functor1::call(acot, x); + return detail::functor1::call(acot, v); } // sech @@ -138,10 +138,10 @@ namespace glm } template class vecType> - GLM_FUNC_QUALIFIER vecType sech(vecType const & x) + GLM_FUNC_QUALIFIER vecType sech(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'sech' only accept floating-point inputs"); - return detail::functor1::call(sech, x); + return detail::functor1::call(sech, v); } // csch @@ -153,10 +153,10 @@ namespace glm } template class vecType> - GLM_FUNC_QUALIFIER vecType csch(vecType const & x) + GLM_FUNC_QUALIFIER vecType csch(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'csch' only accept floating-point inputs"); - return detail::functor1::call(csch, x); + return detail::functor1::call(csch, v); } // coth @@ -168,54 +168,54 @@ namespace glm } template class vecType> - GLM_FUNC_QUALIFIER vecType coth(vecType const & x) + GLM_FUNC_QUALIFIER vecType coth(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'coth' only accept floating-point inputs"); - return detail::functor1::call(coth, x); + return detail::functor1::call(coth, v); } // asech template - GLM_FUNC_QUALIFIER genType asech(genType const & angle) + GLM_FUNC_QUALIFIER genType asech(genType const & x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'asech' only accept floating-point values"); return acosh(genType(1) / x); } template class vecType> - GLM_FUNC_QUALIFIER vecType asech(vecType const & x) + GLM_FUNC_QUALIFIER vecType asech(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'asech' only accept floating-point inputs"); - return detail::functor1::call(asech, x); + return detail::functor1::call(asech, v); } // acsch template - GLM_FUNC_QUALIFIER genType acsch(genType const & angle) + GLM_FUNC_QUALIFIER genType acsch(genType const & x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acsch' only accept floating-point values"); return acsch(genType(1) / x); } template class vecType> - GLM_FUNC_QUALIFIER vecType acsch(vecType const & x) + GLM_FUNC_QUALIFIER vecType acsch(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acsch' only accept floating-point inputs"); - return detail::functor1::call(acsch, x); + return detail::functor1::call(acsch, v); } // acoth template - GLM_FUNC_QUALIFIER genType acoth(genType const & angle) + GLM_FUNC_QUALIFIER genType acoth(genType const & x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acoth' only accept floating-point values"); return atanh(genType(1) / x); } template class vecType> - GLM_FUNC_QUALIFIER vecType acoth(vecType const & x) + GLM_FUNC_QUALIFIER vecType acoth(vecType const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'acoth' only accept floating-point inputs"); - return detail::functor1::call(acoth, x); + return detail::functor1::call(acoth, v); } }//namespace glm