Skip to content

[rshapes] Optimize CheckCollisionCircles #4065

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

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

kai-z99
Copy link
Contributor

@kai-z99 kai-z99 commented Jun 14, 2024

Avoid unnecessary square root calculation in CheckCollisionCircles

Tested in this branch:
https://github.com/kai-z99/raylib/blob/circlecollisionopt/examples/shapes/shapes_collision_area.c

ss2
ss1

@raysan5 raysan5 merged commit fca53c7 into raysan5:master Jun 14, 2024
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Jun 14, 2024

@kai-z99 Thanks for the review!

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