public void PolygonH() { var polygon = Shaper.PolygonH(new Vector3(), new Vector3(3.0, 5.0), 1.0); var vertices = polygon.Vertices; Assert.Contains(vertices, p => p.X == 0.0 && p.Y == 0.0); Assert.Contains(vertices, p => p.X == 1.0 && p.Y == 0.0); Assert.Contains(vertices, p => p.X == 1.0 && p.Y == 2.0); Assert.Contains(vertices, p => p.X == 2.0 && p.Y == 2.0); Assert.Contains(vertices, p => p.X == 2.0 && p.Y == 0.0); Assert.Contains(vertices, p => p.X == 3.0 && p.Y == 0.0); Assert.Contains(vertices, p => p.X == 3.0 && p.Y == 5.0); Assert.Contains(vertices, p => p.X == 2.0 && p.Y == 5.0); Assert.Contains(vertices, p => p.X == 2.0 && p.Y == 3.0); Assert.Contains(vertices, p => p.X == 1.0 && p.Y == 3.0); Assert.Contains(vertices, p => p.X == 1.0 && p.Y == 5.0); Assert.Contains(vertices, p => p.X == 0.0 && p.Y == 5.0); }