From 3eb97da65210a0adb7afed426dc4b6d05e31364e Mon Sep 17 00:00:00 2001 From: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Date: Thu, 15 Dec 2022 12:48:19 +0200 Subject: [PATCH] need a break --- src/raymath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raymath.h b/src/raymath.h index 83c74604b..061c91425 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -313,7 +313,7 @@ RMAPI float Vector2Angle(Vector2 v1, Vector2 v2) float dotProduct = v1.x*v2.x + v1.y*v2.y; float t = dotProduct < -1 ? -1 : dotProduct; - float result = acosf(t > max ? max : t); + float result = acosf(t > 1 ? 1 : t); return result; }