simulation/Vector.h

21 lines
284 B
C

#ifndef VECTOR_H
#define VECTOR_H
struct Vec2
{
int x, y = 0;
Vec2 operator+ (const Vec2 left);
Vec2 operator* (const Vec2 left);
Vec2 operator* (const int left);
Vec2 operator/ (const int left);
int norm();
};
const static Vec2 gravity = {0,10};
#endif /* VECTOR_H */