mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 06:44:35 +00:00
gtc/reciprocal declaration fixes
This commit is contained in:
parent
62ced8df39
commit
4108e69e85
@ -37,7 +37,7 @@ namespace glm
|
|||||||
{
|
{
|
||||||
// sec
|
// sec
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType sec(genType angle)
|
GLM_FUNC_QUALIFIER genType sec(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'sec' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'sec' only accept floating-point values");
|
||||||
return genType(1) / glm::cos(angle);
|
return genType(1) / glm::cos(angle);
|
||||||
@ -52,7 +52,7 @@ namespace glm
|
|||||||
|
|
||||||
// csc
|
// csc
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType csc(genType angle)
|
GLM_FUNC_QUALIFIER genType csc(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'csc' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'csc' only accept floating-point values");
|
||||||
return genType(1) / glm::sin(angle);
|
return genType(1) / glm::sin(angle);
|
||||||
@ -84,7 +84,7 @@ namespace glm
|
|||||||
|
|
||||||
// asec
|
// asec
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType asec(genType x)
|
GLM_FUNC_QUALIFIER genType asec(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'asec' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'asec' only accept floating-point values");
|
||||||
return acos(genType(1) / x);
|
return acos(genType(1) / x);
|
||||||
@ -99,7 +99,7 @@ namespace glm
|
|||||||
|
|
||||||
// acsc
|
// acsc
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType acsc(genType x)
|
GLM_FUNC_QUALIFIER genType acsc(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'acsc' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'acsc' only accept floating-point values");
|
||||||
return asin(genType(1) / x);
|
return asin(genType(1) / x);
|
||||||
@ -114,7 +114,7 @@ namespace glm
|
|||||||
|
|
||||||
// acot
|
// acot
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType acot(genType x)
|
GLM_FUNC_QUALIFIER genType acot(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'acot' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'acot' only accept floating-point values");
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ namespace glm
|
|||||||
|
|
||||||
// sech
|
// sech
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType sech(genType angle)
|
GLM_FUNC_QUALIFIER genType sech(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'sech' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'sech' only accept floating-point values");
|
||||||
return genType(1) / glm::cosh(angle);
|
return genType(1) / glm::cosh(angle);
|
||||||
@ -146,7 +146,7 @@ namespace glm
|
|||||||
|
|
||||||
// csch
|
// csch
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType csch(genType angle)
|
GLM_FUNC_QUALIFIER genType csch(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'csch' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'csch' only accept floating-point values");
|
||||||
return genType(1) / glm::sinh(angle);
|
return genType(1) / glm::sinh(angle);
|
||||||
@ -161,7 +161,7 @@ namespace glm
|
|||||||
|
|
||||||
// coth
|
// coth
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType coth(genType angle)
|
GLM_FUNC_QUALIFIER genType coth(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'coth' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'coth' only accept floating-point values");
|
||||||
return glm::cosh(angle) / glm::sinh(angle);
|
return glm::cosh(angle) / glm::sinh(angle);
|
||||||
@ -176,7 +176,7 @@ namespace glm
|
|||||||
|
|
||||||
// asech
|
// asech
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType asech(genType x)
|
GLM_FUNC_QUALIFIER genType asech(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'asech' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'asech' only accept floating-point values");
|
||||||
return acosh(genType(1) / x);
|
return acosh(genType(1) / x);
|
||||||
@ -191,7 +191,7 @@ namespace glm
|
|||||||
|
|
||||||
// acsch
|
// acsch
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType acsch(genType x)
|
GLM_FUNC_QUALIFIER genType acsch(genType const & angle)
|
||||||
{
|
{
|
||||||
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 acsch(genType(1) / x);
|
||||||
@ -206,7 +206,7 @@ namespace glm
|
|||||||
|
|
||||||
// acoth
|
// acoth
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
GLM_FUNC_QUALIFIER genType acoth(genType x)
|
GLM_FUNC_QUALIFIER genType acoth(genType const & angle)
|
||||||
{
|
{
|
||||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'acoth' only accept floating-point values");
|
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'acoth' only accept floating-point values");
|
||||||
return atanh(genType(1) / x);
|
return atanh(genType(1) / x);
|
||||||
|
Loading…
Reference in New Issue
Block a user