[server] Implement and match n_VectorSize(...)

This commit is contained in:
RD42
2024-04-27 21:04:44 +08:00
parent 4356777720
commit d36c02eb05
5 changed files with 30 additions and 2 deletions

12
server/mathutils.cpp Normal file
View 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));
}
//----------------------------------------------------