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

Bugfix for vertical edges + performance boost + dependency updates #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Lurchfresser
Copy link

If on edge is a vertical edge, m will be Infinity. This can be avoided by also checking, if the point is to the west (or "left") of both points of the edges, because that condition will always be true for a vertical edge. This also improves performance. For fully understanding this problem I recommend this video.

Same problem answered on stackoverflow:
https://stackoverflow.com/a/78344157/17709729

@Lurchfresser Lurchfresser deleted the bugfix branch April 17, 2024 23:57
@Lurchfresser Lurchfresser restored the bugfix branch April 17, 2024 23:57
@Lurchfresser Lurchfresser reopened this Apr 18, 2024
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.

1 participant