mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-18 17:35:43 +00:00
Mass refactoring part 1/2: establishing multiple subprojects, moving source files to their new location, adding resources/templates to version control
This commit is contained in:
39
src/Common/Math/CVector2i.h
Normal file
39
src/Common/Math/CVector2i.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#ifndef CVECTOR2I_H
|
||||
#define CVECTOR2I_H
|
||||
|
||||
#include <FileIO/CInputStream.h>
|
||||
#include <FileIO/COutputStream.h>
|
||||
|
||||
class CVector2i
|
||||
{
|
||||
public:
|
||||
int x, y;
|
||||
CVector2i();
|
||||
CVector2i(int xy);
|
||||
CVector2i(int _x, int _y);
|
||||
|
||||
CVector2i operator+(const CVector2i& other) const;
|
||||
CVector2i operator-(const CVector2i& other) const;
|
||||
CVector2i operator*(const CVector2i& other) const;
|
||||
CVector2i operator/(const CVector2i& other) const;
|
||||
void operator+=(const CVector2i& other);
|
||||
void operator-=(const CVector2i& other);
|
||||
void operator*=(const CVector2i& other);
|
||||
void operator/=(const CVector2i& other);
|
||||
CVector2i operator+(const int other) const;
|
||||
CVector2i operator-(const int other) const;
|
||||
CVector2i operator*(const int other) const;
|
||||
CVector2i operator/(const int other) const;
|
||||
void operator+=(const int other);
|
||||
void operator-=(const int other);
|
||||
void operator*=(const int other);
|
||||
void operator/=(const int other);
|
||||
bool operator==(const CVector2i& other) const;
|
||||
bool operator!=(const CVector2i& other) const;
|
||||
int& operator[](int index);
|
||||
|
||||
// Static Members
|
||||
static const CVector2i skZero;
|
||||
};
|
||||
|
||||
#endif // CVECTOR2I_H
|
||||
Reference in New Issue
Block a user