Browse Source

Added fround.

Branimir Karadžić 11 năm trước cách đây
mục cha
commit
1940912b9a
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      include/bx/fpumath.h

+ 5 - 0
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;