mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[server] Implement and match n_VectorSize(...)
This commit is contained in:
12
server/mathutils.cpp
Normal file
12
server/mathutils.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
#include "main.h"
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
float GetLength(PVECTOR vec)
|
||||
{
|
||||
return (float)sqrt((vec->X * vec->X) + (vec->Y * vec->Y) + (vec->Z * vec->Z));
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
Reference in New Issue
Block a user