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

Function Documentation#

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

Truncate value.

Parameters:

x – Specify the value to evaluate.

Returns:

Value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x.