2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 18:05:23 +01:00
This commit is contained in:
Night Owl 2017-07-24 16:56:43 +05:00
parent 4150b464a0
commit aaf81c7709

View File

@ -239,7 +239,7 @@ float AngleBetweenVectors( const vec3_t v1, const vec3_t v2 )
if( !l1 || !l2 ) if( !l1 || !l2 )
return 0.0f; return 0.0f;
angle = acos( DotProduct( v1, v2 ) ) / ( l1 * l2 ); angle = acos( DotProduct( v1, v2 ) / ( l1 * l2 ) );
angle = ( angle * 180.0f ) / M_PI; angle = ( angle * 180.0f ) / M_PI;
return angle; return angle;