mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
Added a VectorEquals macro. Because I can.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3303 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ba368d0210
commit
b9d0d937c6
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@ extern int nanmask;
|
|||
#define VectorClear(a) ((a)[0]=(a)[1]=(a)[2]=0)
|
||||
#define VectorNegate(a,b) ((b)[0]=-(a)[0],(b)[1]=-(a)[1],(b)[2]=-(a)[2])
|
||||
#define VectorLength(a) Length(a)
|
||||
#define VectorMA(a,s,b,c) do{c[0] = a[0] + s*b[0];c[1] = a[1] + s*b[1];c[2] = a[2] + s*b[2];}while(0)
|
||||
|
||||
#define VectorMA(a,s,b,c) do{(c)[0] = (a)[0] + (s)*(b)[0];(c)[1] = (a)[1] + (s)*(b)[1];(c)[2] = (a)[2] + (s)*(b)[2];}while(0)
|
||||
#define VectorEquals(a,b) ((a)[0] == (b)[0] && (a)[1] == (b)[1] && (a)[2] == (b)[2])
|
||||
|
||||
|
||||
typedef float matrix3x4[3][4];
|
||||
|
|
Loading…
Reference in a new issue