Remove unused sign() (C++11 has signbit)

This commit is contained in:
Dennis Felsing 2022-04-25 18:21:50 +02:00
parent af0fcf8773
commit 67286a4971

View file

@ -9,11 +9,6 @@
using std::clamp;
constexpr inline float sign(float f)
{
return f < 0.0f ? -1.0f : 1.0f;
}
constexpr inline int round_to_int(float f)
{
return f > 0 ? (int)(f + 0.5f) : (int)(f - 0.5f);