mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Added ffloor and fceil.
This commit is contained in:
@@ -29,9 +29,19 @@ namespace bx
|
||||
return _rad * 180.0f / pi;
|
||||
}
|
||||
|
||||
inline float ffloor(float _f)
|
||||
{
|
||||
return floorf(_f);
|
||||
}
|
||||
|
||||
inline float fceil(float _f)
|
||||
{
|
||||
return ceilf(_f);
|
||||
}
|
||||
|
||||
inline float fround(float _f)
|
||||
{
|
||||
return floorf(_f + 0.5f);
|
||||
return ffloor(_f + 0.5f);
|
||||
}
|
||||
|
||||
inline float fmin(float _a, float _b)
|
||||
|
||||
Reference in New Issue
Block a user