Exemplo n.º 1
0
 public void CompareShapes(List <IShape> shapesA, List <IShape> shapesB)
 {
     foreach (var sa in shapesA)
     {
         foreach (var sb in shapesB)
         {
             PositiveDouble ratio = AreaRatio(sa, sb);
             Console.WriteLine($"Area ratio between {sa} and {sb} is {ratio.Value:F3}");
         }
     }
 }
Exemplo n.º 2
0
 public Circle(double x, double y, PositiveDouble radius)
 {
     X      = x;
     Y      = y;
     Radius = radius;
 }