Fix ;
This commit is contained in:
parent
5d4f17da3a
commit
4b419d0c84
|
|
@ -313,7 +313,7 @@ RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
|
||||||
float dotProduct = v1.x*v2.x + v1.y*v2.y;
|
float dotProduct = v1.x*v2.x + v1.y*v2.y;
|
||||||
|
|
||||||
float t = dotProduct < -1 ? -1 : dotProduct;
|
float t = dotProduct < -1 ? -1 : dotProduct;
|
||||||
float result = acos(t > max ? max : t;);
|
float result = acos(t > max ? max : t);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user