step
The step function is the simplest of filters. When the given value exceeds the threshold, we switch over to the higher value (true).
- step(a,x)
- Returns 0 when (x < a), 1 otherwise.
COPY/// step(a,x)
//
// Returns 0 when (x < a), 1 otherwise.
//
// a threshold value, real
// x value, real
//
/// GMLscripts.com/license
{
return (argument1 >= argument0);
}
Contributors: xot
GitHub: View · Commits · Blame · Raw