Czoko_Smieciarka/Trunk/Components/CzokoŚmieciarka.DataModels/Models/Coords.cs
2019-03-13 15:31:33 +01:00

31 lines
615 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CzokoŚmieciarka.DataModels.Models
{
public class Coords
{
public Coords(int x,int y)
{
this.X = x;
this.Y = y;
}
public int X { get; set; }
public int Y { get; set; }
public static bool operator == (Coords a, Coords b)
{
return a.X == b.X && a.Y == b.Y;
}
public static bool operator !=(Coords a, Coords b)
{
return !(a == b);
}
}
}