Template Function TRAP::Math::Step(const Vec<L, T>&, const Vec<L, T>&)#
Function Documentation#
-
template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::Step(const Vec<L, T> &edge, const Vec<L, T> &x)# Generate a step function by comparing x to edgee.
- Parameters:
edge – Specifies the location of the edge of the step function.
x – Specify the value to be used to generate the step function.
- Returns:
0.0 if x < edge, otherwise it returns 1.0.