Пример #1
0
        /// <summary>
        /// Add a point to the array
        /// </summary>
        /// <param name="_xvalue">double</param>
        /// <param name="_yvalue">double</param>
        public void AddPoint(double _xvalue, double _yvalue)
        {
            Array.Resize(ref this.points, this.points.Length + 1);
            SVGPoint point = new SVGPoint(Math.Round(_xvalue, 2), Math.Round(_yvalue, 2));

            this.points[this.points.Length - 1] = point;
        }
Пример #2
0
 /// <summary>
 /// Add a point to the array
 /// </summary>
 /// <param name="_point">SVGPoint</param>
 public void AddPoint(SVGPoint _point)
 {
     this.AddPoint(_point.X, _point.Y);
 }
Пример #3
0
 public Line(SVGPoint _source, SVGPoint _destination)
     : this(_source.X, _source.Y, _destination.X, _destination.Y)
 {
 }