forked from microsoft/coyote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocation.cs
36 lines (30 loc) · 847 Bytes
/
Location.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.Coyote.Samples.DrinksServingRobot
{
internal class Location
{
public double X { get; private set; }
public double Y { get; private set; }
public Location(double x, double y)
{
this.X = x;
this.Y = y;
}
public override string ToString()
{
return $"( {this.X}, {this.Y} )";
}
public override bool Equals(object obj)
{
var other = obj as Location;
return other != null
? this.X == other.X && this.Y == other.Y
: base.Equals(obj);
}
public override int GetHashCode()
{
throw new System.NotImplementedException();
}
}
}