示例#1
0
文件: MyVector.cs 项目: ipzPZ121/OOP
 public MyVector(Rect rect)
     : this()
 {
     arr = new int[4];
     arr[0] = rect.GetX();
     arr[1] = rect.GetY();
     arr[2] = rect.GetX() + rect.GetW();
     arr[3] = rect.GetY() + rect.GetH();
 }
示例#2
0
文件: Rect.cs 项目: ipzPZ121/OOP
 public Rect(Rect rect)
     : this(rect.GetX(), rect.GetY(), rect.GetW(), rect.GetH())
 {
 }