Template Function TRAP::Math::Fract(const Vec<L, T>&)#

Function Documentation#

template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::Fract(const Vec<L, T> &x)#

Retrieve fractional part of x.

Parameters:

x – Specify the value to evaluate.

Returns:

x - Floor(x).