prime/include/Kyoto/Math/CVector2i.hpp

25 lines
528 B
C++
Raw Normal View History

#ifndef _CVECTOR2I
#define _CVECTOR2I
#include "types.h"
class CVector2i {
public:
CVector2i(int, int);
2022-10-04 20:11:34 +00:00
int GetX() const { return mX; }
int GetY() const { return mY; }
private:
2022-10-04 20:11:34 +00:00
int mX;
int mY;
};
2022-10-04 20:11:34 +00:00
CVector2i operator+(const CVector2i& lhs, const CVector2i& rhs);
CVector2i operator+(const CVector2i& lhs, const CVector2i& rhs);
bool operator==(const CVector2i& lhs, const CVector2i& rhs);
CVector2i operator*(const CVector2i& lhs, int rhs);
CVector2i operator/(const CVector2i& lhs, int rhs);
#endif // _CVECTOR2I