mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 18:05:23 +01: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 )
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user