Пример #1
0
 public void Reduce(BRectInt source)
 {
     if (xMin < source.xMin)
     {
         xMin = source.xMin;
     }
     if (xMax > source.xMax)
     {
         xMax = source.xMax;
     }
     if (yMax > source.yMax)
     {
         yMax = source.yMax;
     }
     if (yMin < source.yMin)
     {
         yMin = source.yMin;
     }
 }
Пример #2
0
 public void Extend(BRectInt source)
 {
     if (xMin > source.xMin)
     {
         xMin = source.xMin;
     }
     if (xMax < source.xMax)
     {
         xMax = source.xMax;
     }
     if (yMax < source.yMax)
     {
         yMax = source.yMax;
     }
     if (yMin > source.yMin)
     {
         yMin = source.yMin;
     }
 }