forgor this

This commit is contained in:
Alug committed 2024-07-23 20:32:07 +02:00
1 parent d6a9cdc452
commit 2e7f64458d
1 file changed
+6
+6
View File
@@ -94,6 +94,12 @@ FUNCMATH FUNCINLINE static ATTRINLINE angle_t InvAngle(angle_t a)
{
return (ANGLE_MAX-a)+1;
}
// 315 = 45
FUNCMATH FUNCINLINE static ATTRINLINE angle_t AbsAngle(angle_t a)
{
return a & ANGLE_180 ? InvAngle(a) : a;
}
// angle_t to fixed_t f(ANGLE_45) = 45*FRACUNIT
FUNCMATH fixed_t AngleFixed(angle_t af);
// fixed_t to angle_t f(45*FRACUNIT) = ANGLE_45