D3DVIEW1.CPP File Reference

Go to the source code of this file.

Defines

#define VECSUB(a, b, c)   { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];}
#define VECSUM(a, b, c)   { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];}
#define VECSCALE(a, b, c)   { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];}
#define VECCOPY(a, c)   { c[0]=a[0]; c[1]=a[1]; c[2]=a[2];}
#define DOT(a, b)   ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )
#define CROSS(v1, v2, r)
#define HIDDEN   2


Define Documentation

#define VECSUB ( a,
b,
 )     { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];}

Definition at line 26 of file D3DVIEW1.CPP.

#define VECSUM ( a,
b,
 )     { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];}

Definition at line 27 of file D3DVIEW1.CPP.

#define VECSCALE ( a,
b,
 )     { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];}

Definition at line 28 of file D3DVIEW1.CPP.

#define VECCOPY ( a,
 )     { c[0]=a[0]; c[1]=a[1]; c[2]=a[2];}

Definition at line 29 of file D3DVIEW1.CPP.

#define DOT ( a,
 )     ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )

Definition at line 30 of file D3DVIEW1.CPP.

#define CROSS ( v1,
v2,
 ) 

Value:

{ \
                          r[0] = (v1[1]*v2[2]) - (v2[1]*v1[2]);  \
                          r[1] = (v1[2]*v2[0]) - (v1[0]*v2[2]);  \
                          r[2] = (v1[0]*v2[1]) - (v2[0]*v1[1]);  \
                        }

Definition at line 31 of file D3DVIEW1.CPP.

#define HIDDEN   2

Definition at line 37 of file D3DVIEW1.CPP.


Generated on Sun Apr 27 14:20:15 2014 for OpenFX by  doxygen 1.5.6