Пример #1
0
        public double getPerimeter(ShapeF s)
        {
            var width = s.getWidth();

            return(3 * width);
        }
Пример #2
0
        public double getArea(ShapeF s)
        {
            var width = s.getWidth();

            return((Math.Sqrt(3) / 4) * width * width);
        }
Пример #3
0
 public double getArea(ShapeF s)
 {
     return(Math.PI * (s.getWidth() / 2) * (s.getWidth() / 2));
 }
Пример #4
0
 public double getPerimeter(ShapeF s)
 {
     return(Math.PI * s.getWidth());
 }
Пример #5
0
        public double getArea(ShapeF s)
        {
            var w = s.getWidth();

            return(w * w);
        }