public Rectangle(Rectangle rect) { X = rect.GetX(); Y = rect.GetY(); W = rect.GetW(); H = rect.GetH(); }
public MyVectorArr(Rectangle 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(); }