mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
Fixed trunc implementation
This commit is contained in:
parent
1b6c73a82e
commit
2268a23bf3
@ -189,7 +189,7 @@ namespace glm
|
||||
inline genType trunc(genType const & x)
|
||||
{
|
||||
GLM_STATIC_ASSERT(detail::type<genType>::is_float);
|
||||
return floor(abs(x));
|
||||
return x < 0 ? -floor(-x) : floor(x);;
|
||||
}
|
||||
|
||||
template <typename valType>
|
||||
|
Loading…
Reference in New Issue
Block a user