This commit is contained in:
Branimir Karadžić
2018-12-05 18:19:14 -08:00
parent 76aa518a2e
commit 257316ab01
3 changed files with 22 additions and 24 deletions

View File

@@ -239,22 +239,6 @@ namespace bx
return result;
}
BX_CONST_FUNC float floor(float _a)
{
if (_a < 0.0f)
{
const float fr = fract(-_a);
const float result = -_a - fr;
return -(0.0f != fr
? result + 1.0f
: result)
;
}
return _a - fract(_a);
}
static void mtxLookAtImpl(float* _result, const Vec3& _eye, const Vec3& _view, const Vec3& _up)
{
const Vec3 uxv = cross(_up, _view);