summaryrefslogtreecommitdiffhomepage
path: root/examples/others/raymath_vector_angle.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-07-04 16:58:43 +0200
committerRay <[email protected]>2023-07-04 16:58:43 +0200
commit225b4fb3e2503d97a53d3aa746ddac3648cfebd8 (patch)
tree571160271eede2367cc55dfb0017d9632314a94e /examples/others/raymath_vector_angle.c
parentdd2d64e05804e749d470a9d252cea48b8b1d7e17 (diff)
downloadraylib-225b4fb3e2503d97a53d3aa746ddac3648cfebd8.tar.gz
raylib-225b4fb3e2503d97a53d3aa746ddac3648cfebd8.zip
REVIEWED: `Vector2Angle()`
Diffstat (limited to 'examples/others/raymath_vector_angle.c')
-rw-r--r--examples/others/raymath_vector_angle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/others/raymath_vector_angle.c b/examples/others/raymath_vector_angle.c
index 5de6116f..b193648f 100644
--- a/examples/others/raymath_vector_angle.c
+++ b/examples/others/raymath_vector_angle.c
@@ -78,9 +78,7 @@ int main(void)
DrawLineEx(v0, v2, 2.0f, RED);
float startangle = 90 - Vector2LineAngle(v0, v1)*RAD2DEG;
- DrawCircleSector(v0, 40.0f, startangle, angle + startangle, 32, Fade(GREEN, 0.6f));
-
- //DrawCircleSector(v0, 40.0f, 90 - Vector2LineAngle(v0, v1)*RAD2DEG, angle, 32, Fade(GREEN, 0.6f));
+ DrawCircleSector(v0, 40.0f, startangle, startangle + angle - 360.0f*(angle > 180.0f), 32, Fade(GREEN, 0.6f));
}
else if (angleMode == 1)
{