TombEngine/TR5Main/Global/math.cpp

14 lines
268 B
C++
Raw Normal View History

#include "math.h"
// fix "improperly terminated macro invocation"
// fix "expression must have integral or unscoped enum type"
2019-12-15 16:19:01 +01:00
short ANGLE(short angle)
{
return short((angle) * 65536.0f / 360.0f);
2019-12-15 16:19:01 +01:00
}
float ANGLEF(short angle)
{
return TR_ANGLE_TO_DEGREES(angle);
}