Fixed frac and added more roundEven tests

This commit is contained in:
Christophe Riccio
2014-10-25 14:30:43 +02:00
parent f70ee7ef28
commit eb915ed808
2 changed files with 58 additions and 73 deletions

View File

@@ -278,7 +278,7 @@ namespace detail
{
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'fract' only accept floating-point inputs");
return tvec1<genType>(x).x;
return fract(tvec1<genType>(x)).x;
}
template <typename T, precision P, template <typename, precision> class vecType>