mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Merge ef7cecf654
This commit is contained in:
parent
4150b464a0
commit
aaf81c7709
@ -239,7 +239,7 @@ float AngleBetweenVectors( const vec3_t v1, const vec3_t v2 )
|
||||
if( !l1 || !l2 )
|
||||
return 0.0f;
|
||||
|
||||
angle = acos( DotProduct( v1, v2 ) ) / ( l1 * l2 );
|
||||
angle = acos( DotProduct( v1, v2 ) / ( l1 * l2 ) );
|
||||
angle = ( angle * 180.0f ) / M_PI;
|
||||
|
||||
return angle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user