Skip to content

Commit

Permalink
compilation fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Krivohatskiy <[email protected]>
  • Loading branch information
SergeyKrivohatskiy committed Mar 23, 2021
1 parent 2010c88 commit e81a9c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/gtx/gtx_matrix_interpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ static int test_axisAngle()
}

template <class T>
int testForAxisAngle(glm::tvec3<T> 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());

glm::tmat4x4<T> const matTrue = glm::axisAngleMatrix(axisTrue, angleTrue);
glm::mat<4, 4, T, glm::defaultp> const matTrue = glm::axisAngleMatrix(axisTrue, angleTrue);

glm::tvec3<T> axis;
glm::vec<3, T, glm::defaultp> axis;
T angle;
glm::axisAngle(matTrue, axis, angle);
glm::tmat4x4<T> const matRebuilt = glm::axisAngleMatrix(axis, angle);
glm::mat<4, 4, T, glm::defaultp> const matRebuilt = glm::axisAngleMatrix(axis, angle);

glm::tmat4x4<T> const errMat = matTrue - matRebuilt;
T const maxErr = glm::compMax(glm::tvec4<T>(
glm::mat<4, 4, T, glm::defaultp> const errMat = matTrue - matRebuilt;
T const maxErr = glm::compMax(glm::vec<4, T, glm::defaultp>(
glm::compMax(glm::abs(errMat[0])),
glm::compMax(glm::abs(errMat[1])),
glm::compMax(glm::abs(errMat[2])),
Expand Down

0 comments on commit e81a9c4

Please sign in to comment.