Skip to content

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.

2 participants