Ejemplo n.º 1
0
 public static PointSizeConverter Add(this Size a, PointSizeConverter b)
 {
     return(new Point(a.Width + b.p.X, a.Height + b.p.Y));
 }
Ejemplo n.º 2
0
 public static PointSizeConverter Divide(this Size a, PointSizeConverter b)
 {
     return(new Point(a.Width / b.p.X, a.Height / b.p.Y));
 }
Ejemplo n.º 3
0
 public static PointSizeConverter Subtract(this Size a, PointSizeConverter b)
 {
     return(new Point(a.Width - b.p.X, a.Height - b.p.Y));
 }
Ejemplo n.º 4
0
 public static PointSizeConverter Add(this Point a, PointSizeConverter b)
 {
     return(new Point(a.X + b.p.X, a.Y + b.p.Y));
 }
Ejemplo n.º 5
0
 //math operators on Sizes
 public static PointSizeConverter Multiply(this Size a, PointSizeConverter b)
 {
     return(new Point(a.Width * b.p.X, a.Height * b.p.Y));
 }
Ejemplo n.º 6
0
 public static PointSizeConverter Divide(this Point a, PointSizeConverter b)
 {
     return(new Point(a.X / b.p.X, a.Y / b.p.Y));
 }
Ejemplo n.º 7
0
 public static PointSizeConverter Subtract(this Point a, PointSizeConverter b)
 {
     return(new Point(a.X - b.p.X, a.Y - b.p.Y));
 }
 public static PointSizeConverter Subtract(this Size a, PointSizeConverter b)
 {
     return new Point(a.Width - b.p.X, a.Height - b.p.Y);
 }
Ejemplo n.º 9
0
 //math operators on Points
 public static PointSizeConverter Multiply(this Point a, PointSizeConverter b)
 {
     return(new Point(a.X * b.p.X, a.Y * b.p.Y));
 }
 //math operators on Sizes
 public static PointSizeConverter Multiply(this Size a, PointSizeConverter b)
 {
     return new Point(a.Width * b.p.X, a.Height * b.p.Y);
 }
 public static PointSizeConverter Subtract(this Point a, PointSizeConverter b)
 {
     return new Point(a.X - b.p.X, a.Y - b.p.Y);
 }
 //math operators on Points
 public static PointSizeConverter Multiply(this Point a, PointSizeConverter b)
 {
     return new Point(a.X * b.p.X, a.Y * b.p.Y);
 }
 public static PointSizeConverter Divide(this Size a, PointSizeConverter b)
 {
     return new Point(a.Width / b.p.X, a.Height / b.p.Y);
 }
 public static PointSizeConverter Divide(this Point a, PointSizeConverter b)
 {
     return new Point(a.X / b.p.X, a.Y / b.p.Y);
 }
 public static PointSizeConverter Add(this Size a, PointSizeConverter b)
 {
     return new Point(a.Width + b.p.X, a.Height + b.p.Y);
 }
 public static PointSizeConverter Add(this Point a, PointSizeConverter b)
 {
     return new Point(a.X + b.p.X, a.Y + b.p.Y);
 }