mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Redundant assignment of 'angle' to itself
This commit is contained in:
committed by
Martinfx
parent
551cf50685
commit
44eedf235d
@ -493,7 +493,7 @@ float GetGesturePinchAngle(void)
|
|||||||
// Returns angle from two-points vector with X-axis
|
// Returns angle from two-points vector with X-axis
|
||||||
static float Vector2Angle(Vector2 v1, Vector2 v2)
|
static float Vector2Angle(Vector2 v1, Vector2 v2)
|
||||||
{
|
{
|
||||||
float angle = angle = atan2f(v2.y - v1.y, v2.x - v1.x)*(180.0f/PI);
|
float angle = atan2f(v2.y - v1.y, v2.x - v1.x)*(180.0f/PI);
|
||||||
|
|
||||||
if (angle < 0) angle += 360.0f;
|
if (angle < 0) angle += 360.0f;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user