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

Fixing #277: Rect.Intersect and Rect.Intersects now have consistent behavior #290

Merged
merged 1 commit into from
Aug 19, 2021
Merged

Conversation

dusk125
Copy link
Collaborator

@dusk125 dusk125 commented Aug 17, 2021

I updated the Rect.Intersects function to use inclusive operators so that if only the edge of two rectangles is touching, it won't be considered overlapping, like how Intersect works.

I also added some rectangle v rectangle tests, replacing some benchmarks that weren't really doing anything.

@dusk125 dusk125 requested a review from cebarks August 17, 2021 03:57
Copy link
Collaborator

@cebarks cebarks left a comment

Choose a reason for hiding this comment

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

Yay consistency and more tests!

@dusk125 dusk125 merged commit d940a42 into faiface:master Aug 19, 2021
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.

None yet

2 participants