mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
common: cleanup port.h
This commit is contained in:
@@ -22,6 +22,7 @@ GNU General Public License for more details.
|
||||
#endif
|
||||
|
||||
#include "build.h"
|
||||
#include "com_model.h"
|
||||
|
||||
#ifdef XASH_MSVC
|
||||
#pragma warning(disable : 4201) // nonstandard extension used
|
||||
@@ -104,7 +105,7 @@ GNU General Public License for more details.
|
||||
#define VectorScale(in, scale, out) ((out)[0] = (in)[0] * (scale),(out)[1] = (in)[1] * (scale),(out)[2] = (in)[2] * (scale))
|
||||
#define VectorCompare(v1,v2) ((v1)[0]==(v2)[0] && (v1)[1]==(v2)[1] && (v1)[2]==(v2)[2])
|
||||
#define VectorDivide( in, d, out ) VectorScale( in, (1.0f / (d)), out )
|
||||
#define VectorMax(a) ( max((a)[0], max((a)[1], (a)[2])) )
|
||||
#define VectorMax(a) ( Q_max((a)[0], Q_max((a)[1], (a)[2])) )
|
||||
#define VectorAvg(a) ( ((a)[0] + (a)[1] + (a)[2]) / 3 )
|
||||
#define VectorLength(a) ( sqrt( DotProduct( a, a )))
|
||||
#define VectorLength2(a) (DotProduct( a, a ))
|
||||
|
||||
Reference in New Issue
Block a user