Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        public override Geometry Clone()
        {
            BezierCurve ls = (BezierCurve)base.MemberwiseClone();

            ls.points = points.Clone();
            return(ls);
        }
Beispiel #3
0
        public override Geometry Clone()
        {
            Point p = (Point)base.MemberwiseClone();

            p.coordinates = coordinates.Clone();

            return(p);            // return the clone
        }
Beispiel #4
0
        /// <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());
        }
Beispiel #5
0
        public override Geometry Clone()
        {
            if (!IsEmpty)
            {
                ICoordinateList coordinates = m_objCoordinates.Clone();
                return(new RoundedRectangle(coordinates, m_dCornerRadius,
                                            this.Factory));
            }

            return(new RoundedRectangle(this.Factory));
        }