Vector4.cpp File Reference

#include <common/Vector4.h>
#include <common/Defines.h>

Go to the source code of this file.

Defines

#define _R(i, j)   R[(i)*4+(j)]
#define dDOTpq(a, b, p, q)   ((a)[0]*(b)[0] + (a)[p]*(b)[q] + (a)[2*(p)]*(b)[2*(q)])
#define dDOT41(a, b)   dDOTpq(a,b,4,1)
#define dDOT(a, b)   dDOTpq(a,b,1,1)
#define dMULTIPLYOP1_331(A, op, B, C)
#define dMULTIPLY1_331(A, B, C)   dMULTIPLYOP1_331(A,=,B,C)

Variables

static Vector4 nullVector


Define Documentation

#define _R ( i,
 )     R[(i)*4+(j)]

Definition at line 25 of file Vector4.cpp.

#define dDOT ( a,
b   )     dDOTpq(a,b,1,1)

Definition at line 28 of file Vector4.cpp.

#define dDOT41 ( a,
b   )     dDOTpq(a,b,4,1)

Definition at line 27 of file Vector4.cpp.

#define dDOTpq ( a,
b,
p,
q   )     ((a)[0]*(b)[0] + (a)[p]*(b)[q] + (a)[2*(p)]*(b)[2*(q)])

Definition at line 26 of file Vector4.cpp.

#define dMULTIPLY1_331 ( A,
B,
 )     dMULTIPLYOP1_331(A,=,B,C)

Definition at line 35 of file Vector4.cpp.

#define dMULTIPLYOP1_331 ( A,
op,
B,
 ) 

Value:

do { \
  (A)[0] op dDOT41((B),(C)); \
  (A)[1] op dDOT41((B+1),(C)); \
  (A)[2] op dDOT41((B+2),(C)); \
} while(0)

Definition at line 29 of file Vector4.cpp.


Variable Documentation

Vector4 nullVector [static]

Definition at line 37 of file Vector4.cpp.


Generated on Mon Feb 16 15:14:57 2009 for Scorched3D by  doxygen 1.5.3