/// <summary> /// Creates a <see cref="LineString"/> whose coordinates are in the /// reverse order of this objects. /// </summary> /// <returns> /// A <see cref="LineString"/> with coordinates in the reverse order. /// </returns> public virtual LineString ReverseAll() { ICoordinateList seq = points.Clone(); seq.Reverse(); LineString revLine = this.Factory.CreateLineString(seq); return(revLine); }
public override Geometry Clone() { BezierCurve ls = (BezierCurve)base.MemberwiseClone(); ls.points = points.Clone(); return(ls); }
public override Geometry Clone() { Point p = (Point)base.MemberwiseClone(); p.coordinates = coordinates.Clone(); return(p); // return the clone }
/// <summary> /// Convenience method which provides statndard way of /// copying <see cref="ICoordinateList"/>s. /// </summary> /// <param name="seq">the sequence to copy /// </param> /// <returns> a deep copy of the sequence /// </returns> protected ICoordinateList Copy(ICoordinateList coordinates) { if (coordinates == null) { throw new ArgumentNullException("coordinates"); } return((ICoordinateList)coordinates.Clone()); }
public override Geometry Clone() { if (!IsEmpty) { ICoordinateList coordinates = m_objCoordinates.Clone(); return(new RoundedRectangle(coordinates, m_dCornerRadius, this.Factory)); } return(new RoundedRectangle(this.Factory)); }