Skip to content

Intersection.LineLine fails when Line1.From equals Line2.To #26

Description

@kimchirichie

When looking for intersections of two lines there exists an edge case which is missing proper handling.

condition: line1.From equals line2.To
https://github.com/ccc159/Open3d/blob/c21d4e1912577429d744cfd6d16a7a55ef6c2b5b/src/Intersection.ts#L32

the denominator becomes 0 which returns null.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions