LineF.cs 486 B

12345678910111213141516171819202122232425
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Describes two points in graph space and a line between them
  4. /// </summary>
  5. public class LineF {
  6. /// <summary>
  7. /// The start of the line
  8. /// </summary>
  9. public PointF Start { get; }
  10. /// <summary>
  11. /// The end point of the line
  12. /// </summary>
  13. public PointF End { get; }
  14. /// <summary>
  15. /// Creates a new line between the points
  16. /// </summary>
  17. public LineF (PointF start, PointF end)
  18. {
  19. this.Start = start;
  20. this.End = end;
  21. }
  22. }