mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-18 14:09:22 +00:00
first commit
This commit is contained in:
commit
600bf03514
116 changed files with 15132 additions and 0 deletions
15
src/General.h
Normal file
15
src/General.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
class CGeneral
|
||||
{
|
||||
public:
|
||||
static float GetATanOfXY(float x, float y){
|
||||
if(y >= 0.0f) return atan2(x, y);
|
||||
return atan2(x, y) + 2*M_PI;
|
||||
}
|
||||
|
||||
// not too sure about all these...
|
||||
static uint16 GetRandomNumber(void)
|
||||
{ return myrand() & 0xFFFF; }
|
||||
// Probably don't want to ever reach high
|
||||
static float GetRandomNumberInRange(float low, float high)
|
||||
{ return low + (high - low)*(GetRandomNumber()/65536.0f); }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue