public override void InsertEdgeCoord(Coordinate insert) { if (EdgeCoords.Count + 1 > EdgeNumber) { throw new InvalidQuadrangleConstructionException(); } if (EdgeCoords.Exists(coord => coord.Equals(insert))) { return; } EdgeCoords.Add(insert); }
public override void InsertEdgeCoords(List <Coordinate> insert) { if (EdgeCoords.Count + insert.Count > EdgeNumber) { throw new InvalidQuadrangleConstructionException(); } foreach (Coordinate coord in insert) { if (EdgeCoords.Exists(x => x.Equals(coord))) { continue; } EdgeCoords.Add(coord); } }