Пример #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);
        }
Пример #2
0
        public override Geometry Clone()
        {
            BezierCurve ls = (BezierCurve)base.MemberwiseClone();

            ls.points = points.Clone();
            return(ls);
        }
Пример #3
0
        public override Geometry Clone()
        {
            Point p = (Point)base.MemberwiseClone();

            p.coordinates = coordinates.Clone();

            return(p);            // return the clone
        }
Пример #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());
        }
Пример #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));
        }