17 lines
244 B
C
17 lines
244 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();
|
||
|
};
|
||
|
|
||
|
#endif /* VECTOR_H */
|