LineF.cs 489 B

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