Fixed tests

This commit is contained in:
Christophe Riccio 2011-05-27 00:31:58 +01:00
parent 5c70242e90
commit f87def17de
2 changed files with 1 additions and 15 deletions

View File

@ -147,20 +147,6 @@ namespace detail{
//////////////////////////////////////////////////////////////
// tquat<valType> external operators
template <typename T>
GLM_FUNC_QUALIFIER detail::tquat<T> operator*
(
detail::tquat<T> const & q,
detail::tquat<T> const & p
)
{
return detail::tquat<T>(
q.w + p.w,
q.x + p.x,
q.y + p.y,
q.z + p.z);
}
template <typename T>
GLM_FUNC_QUALIFIER detail::tquat<T> operator-
(

View File

@ -27,7 +27,7 @@ int test_quat_slerp()
glm::quat B(90.0f, glm::vec3(0, 0, 1));
glm::quat C = glm::mix(A, B, 0.5f);
Error += C != glm::quat(45.f, glm::vec3(0, 0, 1)) ? 0 : 1;
Error += C == glm::quat(45.f, glm::vec3(0, 0, 1)) ? 0 : 1;
return Error;
}