From 5429ed9346c3fc4cd3618d71be684a13ea3649b7 Mon Sep 17 00:00:00 2001 From: ryuga4 Date: Tue, 26 Mar 2019 19:37:23 +0100 Subject: [PATCH] Finish 2 --- .../CzokoŚmieciarka.DataModels/Models/Coords.cs | 9 +++++++++ 1 file changed, 9 insertions(+) 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); + } } }