SA-MP/server/mathutils.cpp

13 lines
246 B
C++
Raw Normal View History

#include "main.h"
//----------------------------------------------------
float GetLength(PVECTOR vec)
{
return (float)sqrt((vec->X * vec->X) + (vec->Y * vec->Y) + (vec->Z * vec->Z));
}
//----------------------------------------------------