public override double CalculatesFigureArea() { if (!CheckListMeasurements.AreInequalityZeroOrLess(ClientMeasurments)) { return(double.NaN); } return(UseFormula.AreaByCircleRadius(ClientMeasurments[0])); }
public override double CalculatesFigureArea() { if ( !CheckListMeasurements.AreReallyTriangle(ClientMeasurments) || !CheckListMeasurements.AreInequalityZeroOrLess(ClientMeasurments) ) { return(double.NaN); } return(UseFormula.Heron(ClientMeasurments[0], ClientMeasurments[1], ClientMeasurments[2])); }