IntersectionDefinition.cs 625 B

123456789101112131415161718192021
  1. #nullable disable
  2. namespace Terminal.Gui.Drawing;
  3. internal class IntersectionDefinition
  4. {
  5. internal IntersectionDefinition (Point point, IntersectionType type, StraightLine line)
  6. {
  7. Point = point;
  8. Type = type;
  9. Line = line;
  10. }
  11. /// <summary>The line that intersects <see cref="Point"/></summary>
  12. internal StraightLine Line { get; }
  13. /// <summary>The point at which the intersection happens</summary>
  14. internal Point Point { get; }
  15. /// <summary>Defines how <see cref="Line"/> position relates to <see cref="Point"/>.</summary>
  16. internal IntersectionType Type { get; }
  17. }