private bool AreSameRegularPolygon(RegularPolygon regularPolygon1, RegularPolygon regularPolygon2) { return(regularPolygon1.GetColor() == regularPolygon2.GetColor() && regularPolygon1.GetCenter().X == regularPolygon2.GetCenter().X && regularPolygon1.GetCenter().Y == regularPolygon2.GetCenter().Y && regularPolygon1.GetVertexCount() == regularPolygon2.GetVertexCount() && regularPolygon1.GetRadius() == regularPolygon2.GetRadius()); }