Template Function TRAP::Math::Round(Vec<L, T>)#
Function Documentation#
-
template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::Round(Vec<L, T> x)# Find the nearest integer less than or equal to the parameter.
The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest. This includes the possibility that Round(x) returns the same value as RoundEven(x) for all values of x.
- Parameters:
x – Specify the value to evaluate.
- Returns:
Value equal to the nearest integer to x.