From 1b4e73cf2f36bd157e6bd81e491e3f14f1eb6405 Mon Sep 17 00:00:00 2001 From: Jonathan Akaba <86944352+mrjonjonjon@users.noreply.github.com> Date: Sun, 1 Dec 2024 13:43:32 -0800 Subject: [PATCH] Update documentation for Vector2Angle (#4556) --- src/raymath.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/raymath.h b/src/raymath.h index 5b5e4c74..3c8d2614 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -328,8 +328,9 @@ RMAPI float Vector2DistanceSqr(Vector2 v1, Vector2 v2) return result; } -// Calculate angle between two vectors -// NOTE: Angle is calculated from origin point (0, 0) +// Calculate the signed angle from v1 to v2, relative to the origin (0, 0). +// NOTE: In Raylib's 2D coordinate system (positive X right, positive Y down), +// positive angles appear clockwise, and negative angles appear counterclockwise. RMAPI float Vector2Angle(Vector2 v1, Vector2 v2) { float result = 0.0f;