Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix line contains point method #18

Merged

Conversation

LinkAndreas
Copy link

Fixes #15. When a line is defined as vertical line, the contains method returned false, even though the given point is contained within the line. The fix for this issue considers both definition types and checks whether the x-position matches with the x-coordinate of the given point. If this is the case it is guranteed that the given point is contained in the line.

@toineheuvelmans toineheuvelmans merged commit ac32b11 into toineheuvelmans:master May 22, 2019
@toineheuvelmans
Copy link
Owner

Thanks @LinkAndreas ! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Line.contains doesn't work for vertical lines
2 participants