This commit is contained in:
nastys
2019-07-30 13:48:28 +02:00
parent 25f819bdfb
commit 998f4274a5
157 changed files with 0 additions and 0 deletions
@@ -0,0 +1,34 @@
#include "Vec2.h"
namespace TLAC::Utilities
{
Vec2::Vec2()
{
};
Vec2::Vec2(float x, float y) : X(x), Y(y)
{
};
Vec2 Vec2::operator+(Vec2 value)
{
return Vec2(X + value.X, Y + value.Y);
}
void Vec2::operator+=(const Vec2 &value)
{
X += value.X;
Y += value.Y;
}
Vec2 Vec2::operator-(Vec2 value)
{
return Vec2(X - value.X, Y - value.Y);
}
void Vec2::operator-=(const Vec2 &value)
{
X -= value.X;
Y -= value.Y;
}
}