Skip to content

Commit

Permalink
REVIEWED: Fix #3387
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Oct 10, 2023
1 parent 9702a17 commit cb57165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/others/raymath_vector_angle.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ int main(void)
//----------------------------------------------------------------------------------
float startangle;

if (angleMode == 0) startangle = Vector2LineAngle(v0, v1)*RAD2DEG;
if (angleMode == 0) startangle = -Vector2LineAngle(v0, v1)*RAD2DEG;
if (angleMode == 1) startangle = 0.0f;

v2 = GetMousePosition();
Expand Down Expand Up @@ -91,7 +91,7 @@ int main(void)
DrawLine(0, screenHeight/2, screenWidth, screenHeight/2, LIGHTGRAY);
DrawLineEx(v0, v2, 2.0f, RED);

DrawCircleSector(v0, 40.0f, startangle, startangle + angle, 32, Fade(GREEN, 0.6f));
DrawCircleSector(v0, 40.0f, startangle, startangle - angle, 32, Fade(GREEN, 0.6f));
}

DrawText("v0", v0.x, v0.y, 10, DARKGRAY);
Expand Down

0 comments on commit cb57165

Please sign in to comment.