Пример #1
0
 public bool isEqual(_2DShape a, _2DShape b)
 {
     if (a.area == b.area)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 public void shrink(_2DShape shape, int shrinkBy)
 {
     shape.area /= shrinkBy;
 }
Пример #3
0
 public double findDifference(_2DShape a, _2DShape b)
 {
     return(a.area - b.area);
 }
Пример #4
0
 public void grow(_2DShape shape, int growBy)
 {
     shape.area *= growBy;
 }