More use of GLM constants

This commit is contained in:
Christophe Riccio 2017-08-07 17:28:56 +02:00
parent 00e7908294
commit 36178f91e9

View File

@ -175,7 +175,7 @@ namespace taylorCos
{ {
using glm::precision; using glm::precision;
glm::vec4 const AngleShift(0.0f, glm::pi<float>() * 0.5f, glm::pi<float>() * 1.0f, glm::pi<float>() * 1.5f); glm::vec4 const AngleShift(0.0f, glm::half_pi<float>(), glm::pi<float>(), glm::three_over_two_pi<float>());
template<glm::length_t L, typename T, precision P, template<glm::length_t, typename, precision> class vecType> template<glm::length_t L, typename T, precision P, template<glm::length_t, typename, precision> class vecType>
GLM_FUNC_QUALIFIER vecType<L, T, P> taylorSeriesNewCos(vecType<L, T, P> const & x) GLM_FUNC_QUALIFIER vecType<L, T, P> taylorSeriesNewCos(vecType<L, T, P> const & x)