need a break

This commit is contained in:
Antonis Geralis 2022-12-15 12:48:19 +02:00 committed by GitHub
parent cce1d55dae
commit 3eb97da652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}