using System.Collections.Generic; using Deltares.Geometry; using Deltares.Mathematics; using Deltares.Standard; namespace Deltares.Stability { public class ReferenceLevelLine : GeometryPointString { public ReferenceLevelLine() {} public ReferenceLevelLine(List points, double left, double right) { points.Sort(); points[0].X = left; points[points.Count - 1].X = right; foreach (var point in points) { var geometryPoint = new GeometryPoint(point.X, point.Y, point.Z); Points.Add(geometryPoint); } } } }