/// <summary> /// Checks whether this instance is spatially equal to the LineString 'l' /// </summary> /// <param name="l">LineString to compare to</param> /// <returns>true of the objects are spatially equal</returns> public bool Equals(LineString l) { if (l == null) return false; if (l.Vertices.Count != Vertices.Count) return false; for (int i = 0; i < l.Vertices.Count; i++) if (!l.Vertices[i].Equals(Vertices[i])) return false; return true; }
/// <summary> /// Return a copy of this geometry /// </summary> /// <returns>Copy of Geometry</returns> public new LineString Clone() { LineString l = new LineString(); for (int i = 0; i < _Vertices.Count; i++) l.Vertices.Add(_Vertices[i].Clone()); return l; }