This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| functions:units [2016/05/07 14:58] – [Gravity] korshun | functions:units [2017/06/12 15:40] (current) – removed korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Unit conversions ====== | ||
| - | |||
| - | ===== Angles ===== | ||
| - | |||
| - | ==== ang2deg ==== | ||
| - | '' | ||
| - | |||
| - | Converts ZDoom angles to degrees. | ||
| - | |||
| - | ==== ang2rad ==== | ||
| - | '' | ||
| - | |||
| - | Converts ZDoom angles to radians. | ||
| - | |||
| - | ==== deg2ang ==== | ||
| - | '' | ||
| - | |||
| - | Converts degrees to ZDoom angles. | ||
| - | |||
| - | ==== deg2rad ==== | ||
| - | '' | ||
| - | |||
| - | Converts degrees to radians. | ||
| - | |||
| - | ==== rad2ang ==== | ||
| - | '' | ||
| - | |||
| - | Converts radians to ZDoom angles. | ||
| - | |||
| - | ==== rad2deg ==== | ||
| - | '' | ||
| - | |||
| - | Converts radians to degrees. | ||
| - | |||
| - | ==== ang2byte ==== | ||
| - | '' | ||
| - | |||
| - | Converts ZDoom angles to byte angles. | ||
| - | |||
| - | ==== byte2ang ==== | ||
| - | '' | ||
| - | |||
| - | Converts byte angles to ZDoom angles. | ||
| - | |||
| - | ===== Gravity ===== | ||
| - | |||
| - | Free fall acceleration is measured in mapunits per tic. | ||
| - | ==== accel2grav ==== | ||
| - | '' | ||
| - | |||
| - | Converts free fall acceleration to sv_gravity units. | ||
| - | |||
| - | ==== grav2accel ==== | ||
| - | '' | ||
| - | |||
| - | Converts sv_gravity units to free fall acceleration. | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||