mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
241785e952
The old math functions from quake and quakeworld don't belong with the newer ones as their presence in the same object file causes invalid builtin warnings when pr_cmds isn't present.
15 lines
401 B
R
15 lines
401 B
R
#include <math.h>
|
|
|
|
vector v_forward, v_up, v_right;
|
|
|
|
float () random = #7;
|
|
int (float f) ftoi = #0x000f0000 + 110;
|
|
float (int i) itof = #0x000f0000 + 111;
|
|
vector (vector v) normalize = #9;
|
|
float (vector v) vlen = #12;
|
|
float (vector v) vectoyaw = #13;
|
|
float (float v) rint = #36;
|
|
float (float v) floor = #37;
|
|
float (float v) ceil = #38;
|
|
float (float f) fabs = #43;
|
|
vector (vector v) vectoangles = #51;
|