Browse Source

REVIEWED: Fix #3387

pull/3399/head
Ray 1 year ago
parent
commit
cb57165956
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      examples/others/raymath_vector_angle.c

+ 2
- 2
examples/others/raymath_vector_angle.c View File

@ -44,7 +44,7 @@ int main(void)
//----------------------------------------------------------------------------------
float startangle;
if (angleMode == 0) startangle = Vector2LineAngle(v0, v1)*RAD2DEG;
if (angleMode == 0) startangle = o">-Vector2LineAngle(v0, v1)*RAD2DEG;
if (angleMode == 1) startangle = 0.0f;
v2 = GetMousePosition();
@ -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);

Loading…
Cancel
Save