From 7e3dc0ae16ff325c718e03c9a07c8e8ec1fc85dc Mon Sep 17 00:00:00 2001 From: plasmacel Date: Fri, 21 Nov 2014 04:30:56 +0100 Subject: [PATCH] format fix --- glm/gtc/reciprocal.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtc/reciprocal.inl b/glm/gtc/reciprocal.inl index d43653d3..63d9156c 100644 --- a/glm/gtc/reciprocal.inl +++ b/glm/gtc/reciprocal.inl @@ -66,8 +66,8 @@ namespace glm GLM_FUNC_QUALIFIER genType cot(genType angle) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'cot' only accept floating-point values"); + genType const pi_over_2 = genType(3.1415926535897932384626433832795 / 2.0); - return glm::tan(pi_over_2 - angle); }