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

Add transition slop zones and update tests #10

Merged
merged 3 commits into from
Nov 13, 2023

Conversation

skyepurchase
Copy link
Contributor

As the quadrants now have slop they are mutually exclusive from the axes. But some lines travel through an axis which should need to consider the axis.

This is particularly the case for graphs such as x^2 which would leave a quadrant and enter and axis before entering the origin. This is counter-intuitive.

These transition zones allow for the matching algorithm to catch these cases. By only adding in these zones in specific cases (that is where a line would need to transition from/into a zone from a quadrant) we can control whether to add or ignore axis leeway.

As the quadrants now have slop they are mutually exclusive from the axes. But some lines travel through an axis which should *need to* consider the axis.

This is particularly the case for graphs such as x^2 which would leave a quadrant and enter and axis before entering the origin. This is counter-intuitive.

These transition zones allow for the matching algorithm to catch these cases. By only adding in these zones in specific cases (that is where a line would need to transition from/into a zone from a quadrant) we can control whether to add or ignore axis leeway.
Copy link
Contributor

@jacbn jacbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, just one minor change to a comment. CI build still failing because of override bug.

skyepurchase and others added 2 commits November 13, 2023 09:56
Co-authored-by: Jacob Brown <[email protected]>
Co-authored-by: Jacob Brown <[email protected]>
@skyepurchase skyepurchase merged commit b6a0acf into master Nov 13, 2023
1 check failed
@skyepurchase skyepurchase deleted the improvement/erroneous-bottomRight-fix branch November 13, 2023 10:53
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.

2 participants