compilation fix

Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>
This commit is contained in:
Sergey Krivohatskiy 2021-03-23 15:22:16 +03:00
parent e81a9c4baa
commit b5d4757580

View File

@ -5,6 +5,7 @@
#include <iostream> #include <iostream>
#include <limits> #include <limits>
#include <math.h>
static int test_axisAngle() static int test_axisAngle()
@ -40,7 +41,7 @@ static int test_axisAngle()
template <class T> template <class T>
int testForAxisAngle(glm::vec<3, T, glm::defaultp> const axisTrue, T const angleTrue) int testForAxisAngle(glm::vec<3, T, glm::defaultp> const axisTrue, T const angleTrue)
{ {
T const eps = sqrt(std::numeric_limits<T>::epsilon()); T const eps = std::sqrt(std::numeric_limits<T>::epsilon());
glm::mat<4, 4, T, glm::defaultp> const matTrue = glm::axisAngleMatrix(axisTrue, angleTrue); glm::mat<4, 4, T, glm::defaultp> const matTrue = glm::axisAngleMatrix(axisTrue, angleTrue);