Esempio n. 1
0
        public static Polygon operator -(Polygon polygon, Vertex2 vector)
        {
            var newPolygon = new Polygon(polygon);

            newPolygon.Move(-vector);
            return(newPolygon);
        }
Esempio n. 2
0
        public static Polygon operator +(Vertex2 vector, Polygon polygon)
        {
            var newPolygon = new Polygon(polygon);

            newPolygon.Move(vector);
            return(newPolygon);
        }