예제 #1
0
        /// <summary>Append a line segment to the current figure.</summary>
        /// <param name="point1">The start point coordinates.<see cref="System.PointD"/></param>
        /// <param name="point2">The end point coordinates.<see cref="System.PointD"/></param>
        public void AddLine(System.Windows.Point point1, System.Windows.Point point2)
        {
            X11LinePathSegment ln = new X11LinePathSegment(point1, point2);

            _elements.Add(ln);
        }
예제 #2
0
        /// <summary>Append a line segment to the current figure.</summary>
        /// <param name="x1">The start point x coordinate.<see cref="System.Double"/></param>
        /// <param name="y1">The start point y coordinate.<see cref="System.Double"/></param>
        /// <param name="x2">The end point x coordinate.<see cref="System.Double"/></param>
        /// <param name="y2">The end point y coordinate.<see cref="System.Double"/></param>
        public void AddLine(double x1, double y1, double x2, double y2)
        {
            X11LinePathSegment ln = new X11LinePathSegment(x1, y1, x2, y2);

            _elements.Add(ln);
        }