示例#1
0
 public static Size <T> operator +(Size <T> left, Size <T> right)
 {
     return(new Size <T>(
                Algebra <T> .Add(left.Width, right.Width),
                Algebra <T> .Add(left.Height, right.Height)));
 }
示例#2
0
 public static Point <T> operator +(Point <T> self, Vector <T> vec)
 {
     return(new Point <T>(
                Algebra <T> .Add(self.X, vec.X),
                Algebra <T> .Add(self.Y, vec.Y)));
 }