From 2bf535b9af2a1209ae1f437a5d0e083e70f4b31a Mon Sep 17 00:00:00 2001 From: veins1 <19636663+veins1@users.noreply.github.com> Date: Thu, 15 Dec 2022 23:20:23 +0500 Subject: [PATCH] Update raymath.h --- src/raymath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raymath.h b/src/raymath.h index a853fdcc7..6ca41a708 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -311,7 +311,7 @@ RMAPI float Vector2Angle(Vector2 v1, Vector2 v2) { float v1Length = sqrtf((v1.x*v1.x) + (v1.y*v1.y)); float v2Length = sqrtf((v2.x*v2.x) + (v2.y*v2.y)); - float result = -acos((v1.x*v2.x + v1.y*v2.y)/(v1Length*v2Length)); + float result = -acosf((v1.x*v2.x + v1.y*v2.y)/(v1Length*v2Length)); return result; }