public static double GetCapacity( this ICrossSection cs, double waterLevel, double slope, HDParameterData hdParams )