/// <summary> /// Solves for cubic area yards. /// </summary> /// <returns>The for cubic area yards.</returns> /// <param name="depthTotalInches">Depth total inches.</param> /// <param name="lengthTotalinches">Length totalinches.</param> /// <param name="widthTotalInches">Width total inches.</param> public double SolveForVolumeYards( double depthTotalInches, double lengthTotalinches, double widthTotalInches) { Conversions conv = new Conversions(); double retVal = 0; double cubicIn = 0; double cubicYd = 0; cubicIn = depthTotalInches * lengthTotalinches * widthTotalInches; cubicYd = conv.ConvertCubicInchesToCubicYards(cubicIn); retVal = Math.Round(cubicYd, 2); return(retVal); }
public static double SolveForCubicAreaYards() { Conversions conv = new Conversions(); double retVal = 0; double cubicIn = 0; double cubicYd = 0; double radiusTotalInches; radiusTotalInches = diameterYd / 2; cubicIn = pi * diameterTotalInches * diameterTotalInches * heightTotalInches; cubicYd = conv.ConvertCubicInchesToCubicYards(cubicIn); retVal = Math.Round(cubicYd, 2); CubicYardsInCubicCylinder = retVal; return(retVal); } //End public static double SolveForCubicAreaYards()
/// <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; radius = diameterTotalInches / 2; cubicIn = math.PiValue * radius * radius * heightTotalInches; cubicYd = conv.ConvertCubicInchesToCubicYards(cubicIn); retVal = Math.Round(cubicYd, 2); return(retVal); }