Unit conversions

Angles

ang2deg

fixed ang2deg(angle a)

Converts degrees to ZDoom angles.

ang2rad

fixed ang2rad(angle a)

deg2ang

angle deg2ang(fixed degrees)

deg2rad

fixed deg2rad(fixed degrees)

rad2ang

angle rad2ang(fixed radians)

rad2deg

fixed rad2deg(fixed radians)

ang2byte

int ang2byte(angle a)

byte2ang

angle byte2ang(int byteAngle)

Gravity

accel2grav

fixed accel2grav(fixed accel)

grav2accel

fixed grav2accel(fixed gravity)