public Rectangle(ICellPosition upperLeft, IObjectSize size)
 {
     UpperLeft  = upperLeft;
     Size       = size;
     LowerRight = upperLeft.Add(Size.Subtract(new ObjectSize(1, 1)));
 }
Esempio n. 2
0
 public static ICellPosition ToGlobalCoordinates(this ICellPosition relativeCoordinates, ICellPosition originCoordinates)
 {
     return(relativeCoordinates.Add(originCoordinates.Subtract(new CellPosition(1, 1))));
 }