29 lines
426 B
C
29 lines
426 B
C
#ifndef MATHS_H
|
|
#define MATHS_H
|
|
|
|
#include <math.h>
|
|
#include <memory.h>
|
|
#include <limits.h>
|
|
|
|
// Type definition
|
|
typedef unsigned char uchar;
|
|
typedef uchar byte;
|
|
typedef short int16;
|
|
typedef unsigned short uint16;
|
|
typedef unsigned int uint;
|
|
|
|
// Define M_PI
|
|
#ifndef M_PI
|
|
#define M_PI 3.14159265358979323846 // pi
|
|
#endif // !M_PI
|
|
|
|
#pragma warning( disable : 4244 )
|
|
|
|
struct Point2
|
|
{
|
|
int x;
|
|
int y;
|
|
};
|
|
|
|
#endif // !MATHS_H
|