23 lines
340 B
C++
23 lines
340 B
C++
|
/*
|
||
|
=============================
|
||
|
Math.qc by Koolio
|
||
|
contains some special math functions
|
||
|
either written by me or found on the net
|
||
|
=============================
|
||
|
*/
|
||
|
|
||
|
//Modular division by FrikaC
|
||
|
float(float a, float b) mod =
|
||
|
{
|
||
|
return a - (floor(a / b) * b);
|
||
|
};
|
||
|
|
||
|
/*
|
||
|
float() crandom =
|
||
|
{
|
||
|
return 2*(random() - 0.5);
|
||
|
};
|
||
|
*/
|
||
|
|
||
|
|