fixed
This commit is contained in:
@@ -10,5 +10,23 @@ namespace TMI_practicum
|
||||
X = x;
|
||||
Y = y;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return X.GetHashCode() ^ Y.GetHashCode();
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return obj is Intersection && this == (Intersection) obj;
|
||||
}
|
||||
public static bool operator ==(Intersection x, Intersection y)
|
||||
{
|
||||
return x.X == y.X && x.Y == y.Y;
|
||||
}
|
||||
public static bool operator !=(Intersection x, Intersection y)
|
||||
{
|
||||
return !(x == y);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user