a linear line in 2D point format
Exemple #1
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="line">
 /// the line to be drawn
 /// </param>
 /// <param name="pen">
 /// the pen used to draw the line
 /// </param>
 public DrawObject(Line2D line, Pen pen)
 {
     m_lines2D = new List<KeyValuePair<Line2D, Pen>>();
      m_lines2D.Add(new KeyValuePair<Line2D, Pen>(new Line2D(line), pen));
      m_text = string.Empty;
      m_textPosition = System.Drawing.Point.Empty;
 }
Exemple #2
0
 /// <summary>
 /// copy constructor
 /// </summary>
 /// <param name="line2D">
 /// the line to be copied
 /// </param>
 public Line2D(Line2D line2D)
 {
     m_startPoint = line2D.StartPoint;
      m_endPoint = line2D.EndPoint;
 }
Exemple #3
0
 /// <summary>
 /// copy constructor
 /// </summary>
 /// <param name="line2D">
 /// the line to be copied
 /// </param>
 public Line2D(Line2D line2D)
 {
     m_startPoint = line2D.StartPoint;
     m_endPoint   = line2D.EndPoint;
 }