Browse Source

Fixed acsch #698

Christophe Riccio 8 years ago
parent
commit
529de50383
2 changed files with 2 additions and 1 deletions
  1. 1 1
      glm/gtc/reciprocal.inl
  2. 1 0
      readme.md

+ 1 - 1
glm/gtc/reciprocal.inl

@@ -165,7 +165,7 @@ namespace glm
 	GLM_FUNC_QUALIFIER genType acsch(genType x)
 	GLM_FUNC_QUALIFIER genType acsch(genType x)
 	{
 	{
 		GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'acsch' only accept floating-point values");
 		GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'acsch' only accept floating-point values");
-		return acsch(genType(1) / x);
+		return asinh(genType(1) / x);
 	}
 	}
 
 
 	template<length_t L, typename T, qualifier Q>
 	template<length_t L, typename T, qualifier Q>

+ 1 - 0
readme.md

@@ -107,6 +107,7 @@ glm::mat4 camera(float Translate, glm::vec2 const& Rotate)
 - Fixed Better follow GLSL min and max specification #372
 - Fixed Better follow GLSL min and max specification #372
 - Fixed quaternion constructor from two vectors special cases #469
 - Fixed quaternion constructor from two vectors special cases #469
 - Fixed glm::to_string on quaternions wrong components order #681
 - Fixed glm::to_string on quaternions wrong components order #681
+- Fixed acsch #698
 
 
 #### Deprecation:
 #### Deprecation:
 - Requires Visual Studio 2013, GCC 4.7, Clang 3.4, Cuda 7, ICC 2013 or a C++11 compiler
 - Requires Visual Studio 2013, GCC 4.7, Clang 3.4, Cuda 7, ICC 2013 or a C++11 compiler