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

Function Documentation#

template<u32 L, typename T>
Vec<L, T> TRAP::Math::Modf(Vec<L, T> x, Vec<L, T> &i)#

Separate a value into its integer and fractional components.

Both the return value and the output parameter will have the same sign as x.

Parameters:
  • x – Specify the value to separate.

  • i – Out variable that receives the integer part of the argument.

Returns:

Fractional part of x and sets i to the integer part (as a whole number floating point value).