This commit is contained in:
ryuga4 2019-03-26 19:37:23 +01:00
parent a78fd3cc60
commit 5429ed9346

View File

@ -26,5 +26,14 @@ namespace CzokoŚmieciarka.DataModels.Models
{ {
return !(a == b); return !(a == b);
} }
public static Coords operator + (Coords a, Coords b)
{
return new Coords(a.X + b.X, a.Y + b.Y);
}
public static Coords operator -(Coords a, Coords b)
{
return new Coords(a.X - b.X, a.Y - b.Y);
}
} }
} }