LineF.cs 465 B

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