1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef CRYINCLUDE_EDITOR_UTIL_FASTLIB_H
- #define CRYINCLUDE_EDITOR_UTIL_FASTLIB_H
- #pragma once
- __forceinline int RoundFloatToInt(float fValue)
- {
- return (int)(fValue + 0.5f);
- }
- __forceinline int __stdcall FloatToIntRet(float fValue)
- {
- return (int)(fValue + 0.5f);
- }
- __forceinline int ftoi(float fValue)
- {
- return (int)(fValue);
- }
- __forceinline unsigned int __stdcall ifloor(float fValue)
- {
- return ftoi(floor(fValue));
- }
- #endif
|