コード例 #1
0
        private static TempSoilLayerGeometry As2DGeometry(MacroStabilityInwardsSoilLayer1D layer, MacroStabilityInwardsSoilProfile1D soilProfile, double minX, double maxX)
        {
            double top    = layer.Top;
            double bottom = top - soilProfile.GetLayerThickness(layer);

            return(new TempSoilLayerGeometry(new[]
            {
                new Point2D(minX, top),
                new Point2D(maxX, top),
                new Point2D(maxX, bottom),
                new Point2D(minX, bottom)
            }, layer.Data));
        }
コード例 #2
0
 private bool Equals(MacroStabilityInwardsSoilLayer1D other)
 {
     return(Top.Equals(other.Top) &&
            Data.Equals(other.Data));
 }