فهرست منبع

Added fround.

Branimir Karadžić 11 سال پیش
والد
کامیت
1940912b9a
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      include/bx/fpumath.h

+ 5 - 0
include/bx/fpumath.h

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