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

Fix Vector2Angle() not working as expected #2196

Merged
merged 1 commit into from Dec 7, 2021
Merged

Fix Vector2Angle() not working as expected #2196

merged 1 commit into from Dec 7, 2021

Conversation

jdeokkim
Copy link
Contributor

@jdeokkim jdeokkim commented Dec 7, 2021

This pull request fixes Vector2Angle() not working as expected. (#2172, #2193)

Here's the animation of a simple example I made with the fixed version of Vector2Angle():

angle

float angle = Vector2Angle((Vector2) { .x = 1 }, Vector2Subtract(GetMousePosition(), SCREEN_CENTER)) * RAD2DEG;

@raysan5 raysan5 merged commit 72f3b00 into raysan5:master Dec 7, 2021
@raysan5
Copy link
Owner

raysan5 commented Dec 7, 2021

@jdeokkim thank you very much for the review and the visual explanation. 👍🙂

@jdeokkim jdeokkim changed the title Fix Vector2Angle() not working as expected Fix Vector2Angle() not working as expected Jul 28, 2022
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