//----------------------------------------------------------------------- // // Copyright (c) 2011 Deltares. All rights reserved. // // B.S.T.I.M. The // tom.the@deltares.nl // 13-05-2011 // Part of the Geoemtry2DData object (as is used by the old D-Serie programs) //----------------------------------------------------------------------- using Deltares.Geometry; namespace Deltares.Dam.Data { using Deltares.Standard; public class Geometry2DPoint : GeometryPoint { public Geometry2DPoint() : this (0, 0) { } public Geometry2DPoint(double aX, double aZ) : base(aX, 0, aZ) { } } public class Geometry2DBoundaryLine : PolyLine, ICloneable { public Geometry2DBoundaryLine Clone() { Geometry2DBoundaryLine boundaryLine = new Geometry2DBoundaryLine(); foreach (Geometry2DPoint point in this.Points) { Geometry2DPoint newPoint = new Geometry2DPoint() { X = point.X, Y = point.Y, Z = point.Z }; boundaryLine.Points.Add(newPoint); } return boundaryLine; } } }