Files
unease/engine/utils/maths.h
Kirill Yurkin 719171e7d8 Big changes
2025-03-07 16:54:27 +03:00

40 lines
610 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;
};
struct Vec3
{
float x;
float y;
float z;
Vec3() { x = y = z = 0.f; }
Vec3(float value) { x = y = z = value; }
Vec3(float _x, float _y, float _z) { x = _x; y = _y; z = _z; }
};
#endif // !MATHS_H