Пример #1
0
 public Rectangle PutNextRectangle(Rectangle foundRectangle)
 {
     if (!CheckIntersectionWithExistigRectangles(foundRectangle))
     {
         foundRectangle = MoveRectangleToCenter(foundRectangle);
         Rectangles.AddLast(foundRectangle);
         UpdateBordersAndSize(foundRectangle);
         return(foundRectangle);
     }
     return(Rectangle.Empty);
 }