diff --git a/Trunk/Components/CzokoŚmieciarka.DataModels/Models/Coords.cs b/Trunk/Components/CzokoŚmieciarka.DataModels/Models/Coords.cs index cc8bccb..78c0953 100644 --- a/Trunk/Components/CzokoŚmieciarka.DataModels/Models/Coords.cs +++ b/Trunk/Components/CzokoŚmieciarka.DataModels/Models/Coords.cs @@ -26,5 +26,14 @@ namespace CzokoŚmieciarka.DataModels.Models { 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); + } } }