Hello WWWWWWorld!

This commit is contained in:
Ethan Lee
2020-01-01 15:29:24 -05:00
commit f7c0321b71
133 changed files with 154973 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#ifndef MATHGAME_H
#define MATHGAME_H
#include <cmath>
#include <stdlib.h>
//// This header holds Maths functions that emulate the functionality of flash's
//random
//Returns 0..1
float inline fRandom()
{
return ( float(rand()) / float(RAND_MAX)) ;
}
inline int clamp(int x, int a, int b)
{
return x < a ? a : (x > b ? b : x);
}
struct point
{
int x;
int y;
};
#endif /* MATHGAME_H */