mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
make the math functions Grievre provided available
This commit is contained in:
parent
a4bcf2dab6
commit
888ff5f571
2 changed files with 34 additions and 0 deletions
|
@ -116,4 +116,21 @@
|
|||
*/
|
||||
@extern vector (vector v) vectoangles;
|
||||
|
||||
@extern float (float x) sin;
|
||||
@extern float (float x) cos;
|
||||
@extern float (float x) tan;
|
||||
@extern float (float x) asin;
|
||||
@extern float (float x) acos;
|
||||
@extern float (float x) atan;
|
||||
@extern float (float y, float x) atan2;
|
||||
@extern float (float x) log;
|
||||
@extern float (float x) log10;
|
||||
@extern float (float x, float y) pow;
|
||||
@extern float (float x) sinh;
|
||||
@extern float (float x) cosh;
|
||||
@extern float (float x) tanh;
|
||||
@extern float (float x) asinh;
|
||||
@extern float (float x) acosh;
|
||||
@extern float (float x) atanh;
|
||||
|
||||
#endif //__ruamoko_math_h
|
||||
|
|
|
@ -13,3 +13,20 @@ float (float v) floor = #37;
|
|||
float (float v) ceil = #38;
|
||||
float (float f) fabs = #43;
|
||||
vector (vector v) vectoangles = #51;
|
||||
|
||||
float (float x) sin = #0;
|
||||
float (float x) cos = #0;
|
||||
float (float x) tan = #0;
|
||||
float (float x) asin = #0;
|
||||
float (float x) acos = #0;
|
||||
float (float x) atan = #0;
|
||||
float (float y, float x) atan2 = #0;
|
||||
float (float x) log = #0;
|
||||
float (float x) log10 = #0;
|
||||
float (float x, float y) pow = #0;
|
||||
float (float x) sinh = #0;
|
||||
float (float x) cosh = #0;
|
||||
float (float x) tanh = #0;
|
||||
float (float x) asinh = #0;
|
||||
float (float x) acosh = #0;
|
||||
float (float x) atanh = #0;
|
||||
|
|
Loading…
Reference in a new issue