/// <summary> /// Solves for cubic area yards. /// </summary> /// <returns>The for cubic area yards.</returns> /// <param name="diameterTotalInches">Diameter total inches.</param> /// <param name="heightTotalInches">Height total inches.</param> public double SolveForCubicAreaYards( double diameterTotalInches, double heightTotalInches) { Conversions conv = new Conversions(); double retVal = 0; double cubicIn = 0; double cubicYd = 0; double radius = 0; const double oneThird = .333333333; radius = diameterTotalInches / 2; cubicIn = (math.PiValue * radius * radius * heightTotalInches) / oneThird; cubicYd = conv.ConvertCubicInchesToCubicYards(cubicIn); retVal = Math.Round(cubicYd, 2); return(retVal); }