mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-16 23:49:30 +00:00
address warnings about missing overrides
This commit is contained in:
@@ -67,6 +67,27 @@ namespace MonoGame.Extended
|
||||
&& ellispse.RadiusY == RadiusY;
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return obj is EllipseF && Equals((EllipseF)obj);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
var hashCode = Center.GetHashCode();
|
||||
hashCode = (hashCode * 397) ^ RadiusX.GetHashCode();
|
||||
hashCode = (hashCode * 397) ^ RadiusY.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Centre: {Center}, RadiusX: {RadiusX}, RadiusY: {RadiusY}";
|
||||
}
|
||||
|
||||
public static bool operator ==(EllipseF first, EllipseF second)
|
||||
{
|
||||
return first.Equals(ref second);
|
||||
@@ -77,4 +98,4 @@ namespace MonoGame.Extended
|
||||
return !(first == second);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user