Beispiel #1
0
 public void Visit(Cylinder cylinder) =>
 Dimensions = new Dimensions(2 * cylinder.Radius, cylinder.Height);
Beispiel #2
0
 public void Visit(Cube cube) =>
 Dimensions = new Dimensions(cube.Size, cube.Size);
Beispiel #3
0
 public void Visit(Ball ball) =>
 Dimensions = new Dimensions(2 * ball.Radius, 2 * ball.Radius);
Beispiel #4
0
 public void Visit(Cyllinder cyllinder)
 {
     Dimensions = new Dimensions(cyllinder.Radius * 2, cyllinder.Height);
 }
Beispiel #5
0
 public void Visit(Ball ball)
 {
     Dimensions = new Dimensions(ball.Radius * 2, ball.Radius * 2);
 }
Beispiel #6
0
 public void Visit(Cube cube)
 {
     this.Dimensions = new Dimensions(cube.Size, cube.Size);
 }