Return 0 or 1 depending on whether x is less or greater the edge. This function is an C++ analogue of GLSL step function.
constexpr float Step(const float edge, const float x);
constexpr double Step(const double edge, const double x);
Vector Step(const Vector &edge, const Vector &x);
Namespace: | nitisa |
Include: |
Nitisa/Core/Math/Utils.h (For float and double arguments) Nitisa/Core/Math/VectorUtils.h (For Vector arguments) |