simulation/Vector.h

21 lines
284 B
C
Raw Permalink Normal View History

2022-10-30 23:44:30 +01:00
#ifndef VECTOR_H
#define VECTOR_H
2022-11-02 07:44:57 +01:00
2022-10-30 23:44:30 +01:00
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();
2022-11-02 07:44:57 +01:00
2022-10-30 23:44:30 +01:00
};
2022-11-02 07:44:57 +01:00
const static Vec2 gravity = {0,10};
2022-10-30 23:44:30 +01:00
#endif /* VECTOR_H */