From 1940912b9aa5e0ef52c23f1784fa93e40c0dcfa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 15 Nov 2014 16:58:48 -0800 Subject: [PATCH] Added fround. --- include/bx/fpumath.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/bx/fpumath.h b/include/bx/fpumath.h index baff90d..d2e58e3 100644 --- a/include/bx/fpumath.h +++ b/include/bx/fpumath.h @@ -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;