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); }
public override string[] GetAnotherFigure() { double area = GetArea(); double perim = GetPerimeter(); string[] otherFigureParams = new string[5]; otherFigureParams[0] = ServiceClass.SquareSideByArea(area); otherFigureParams[1] = ServiceClass.SquareSideByPerimeter(perim); otherFigureParams[2] = ServiceClass.RhombSideByAreaAndPerim(area, perim); otherFigureParams[3] = ServiceClass.IsoscelesWith90TriangleSides(area); otherFigureParams[4] = ServiceClass.EquilateralTriangleSides(area); return(otherFigureParams); }