示例#1
0
 public MyVector2D Subtract(MyVector2D v)
 {
     x -= v.x;
     y -= v.y;
     return this;
 }
示例#2
0
 public MyVector2D(MyVector2D v)
 {
     x = v.x;
     y = v.y;
 }
示例#3
0
 public MyVector2D Add(MyVector2D v)
 {
     x += v.x;
     y += v.y;
     return this;
 }