Line
and LineSegment
#261
Labels
needs discussion
This change requires some more discussion before we decide we definitely want it
question
Further information is requested
The
Line
struct in kurbo is a straight line between 2 points. This is commonly called aLineSegment
in other libraries (e.g.lyon
), while theLine
struct represents an infinite line.Because
kurbo
doesn't have the concept of alyon_geom::Line
, it perhaps doesn't matter that there is this mismatch, but I just want to highlight it. Perhaps if something likelyon_geom::Line
was added to kurbo in the future, it could be calledInfiniteLine
? Such a structure could be drawn (just draw the part of it that intersects with the viewport), and you could implementShape
for it (with somef64::INFINITY
s).Again I don't think it's worth or desirable to change the name for
kurbo::Line
, but I thought it was worth thinking about this mismatch.The text was updated successfully, but these errors were encountered: