Skip to content

Overlap between Line2D and LineSegment2D #242

@labsin

Description

@labsin

As a new user, the current state is a bit confusing.

LineSegment2D/3D is clear:
It is the segment between two points

Line2D/3D is unclear:
the class documentation is exactly the same as LineString, with the added "projections to" operations

Looking at Line2D, it has:

  • Start
  • End
  • Length
  • Direction
    And equality is checked by start an.d end
    So it's also a line segment

But IntersectWith, LineTo and ClosestPointTo (optionally) work as infinite lines.

As LineSegment2D is already split off, would it be better to also split off an infinite line and deprecate the Line2D/3D?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions