Return sign of a value. Return -1 if value is negative, 1 if value is positive, and 0 if value is zero.
constexpr int Sign(const int value);
constexpr int Sign(const long long value);
constexpr int Sign(const float value, const float tolerance = Tolerance);
constexpr int Sign(const double value, const double tolerance = (double)Tolerance);
Namespace: | nitisa |
Include: | Nitisa/Core/Math/Utils.h |