Skip to content

Minor Changes #4561

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Minor Changes #4561

wants to merge 1 commit into from

Conversation

JorjMcKie
Copy link
Collaborator

Speed up rectangle intersection check (issue #4527): avoid calculating an intersection rectangle.

Address #4462: Support single int as argument.

Speed up rectangle intersection check (issue #4527): avoid calculating an intersection rectangle.

Address #4462: Support single int as argument.
@JorjMcKie JorjMcKie changed the title Update __init__.py Minor Changes Jun 13, 2025
@JorjMcKie
Copy link
Collaborator Author

The changed intersects() algorithm is on average 3.8 times faster, mainly because it no longer builds the actual intersection rectangle to check its emptiness.

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