Update raymath.h
This commit is contained in:
parent
a1ffb55eb8
commit
2bf535b9af
|
|
@ -311,7 +311,7 @@ RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
|
||||||
{
|
{
|
||||||
float v1Length = sqrtf((v1.x*v1.x) + (v1.y*v1.y));
|
float v1Length = sqrtf((v1.x*v1.x) + (v1.y*v1.y));
|
||||||
float v2Length = sqrtf((v2.x*v2.x) + (v2.y*v2.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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user