Added fround.

This commit is contained in:
Branimir Karadžić
2014-11-15 16:58:48 -08:00
parent f99ea6dfd2
commit 1940912b9a

View File

@@ -26,6 +26,11 @@ namespace bx
return _rad * 180.0f / pi;
}
inline float fround(float _f)
{
return float(int(_f) );
}
inline float fmin(float _a, float _b)
{
return _a < _b ? _a : _b;