BesAsm.Swsp.PacSizingTool.SlopedFacilitySegment.AdjustedSegmentLengthAtDepthFt C# (CSharp) Метод

AdjustedSegmentLengthAtDepthFt() приватный Метод

Computes the surface capacity at a specific depth
private AdjustedSegmentLengthAtDepthFt ( double depth ) : double
depth double /// The depth of water at the lower end of the facility ///
Результат double
        private double AdjustedSegmentLengthAtDepthFt(double depth)
        {
            double len = _segmentLengthFt - (_checkDamLengthFt / 2);
            if (depth - (len * _slopeRatio * 12) > 0)
            return Math.Max(len, 0);
            else
            return Math.Max((depth / 12) / _slopeRatio, 0);
        }