Ejemplo n.º 1
0
        public override string[] GetAnotherFigure()
        {
            double area  = GetArea();
            double perim = GetPerimeter();

            string[] otherFigureParams = new string[4];
            otherFigureParams[0] = ServiceClass.CircleRadiusByArea(area);
            otherFigureParams[1] = ServiceClass.CircleRadiusByPerimeter(perim);
            otherFigureParams[2] = ServiceClass.IsoscelesWith90TriangleSides(area);
            otherFigureParams[3] = ServiceClass.EquilateralTriangleSides(area);
            return(otherFigureParams);
        }
Ejemplo n.º 2
0
        public override string[] GetAnotherFigure()
        {
            double area  = GetArea();
            double perim = GetPerimeter();

            string[] otherFigureParams = new string[5];
            otherFigureParams[0] = ServiceClass.CircleRadiusByArea(area);
            otherFigureParams[1] = ServiceClass.CircleRadiusByPerimeter(perim);
            otherFigureParams[2] = ServiceClass.SquareSideByArea(area);
            otherFigureParams[3] = ServiceClass.SquareSideByPerimeter(perim);
            otherFigureParams[4] = ServiceClass.RhombSideByAreaAndPerim(area, perim);
            return(otherFigureParams);
        }