TWIST.C File Reference

Go to the source code of this file.

Defines

#define DESELECTED   0
#define SELECTED   1
#define FAIL   -1
#define OK   1
#define POINT2VECTOR(p, v)
#define VECTOR2POINT(v, p)
#define VECCOPY(a, b)   { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; }
#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 DOT(a, b)   ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )
#define CROSS(v1, v2, r)

Functions

void MultMV (double t4[4][4], long x, long y, long z, long *xx, long *yy, long *zz)
void CopyMM (double tin[4][4], double tout[4][4])
void MultMM (double t1[4][4], double t2[4][4], double tr[4][4])
BOOL WINAPI DllMain (HANDLE hDLL, DWORD dwReason, LPVOID lpReserved)
BOOL _Xmodeler (HWND parent_window, HWND info_window, X__STRUCTURE *lpevi)

Define Documentation

#define DESELECTED   0

Definition at line 17 of file TWIST.C.

#define SELECTED   1

Definition at line 18 of file TWIST.C.

#define FAIL   -1

Definition at line 19 of file TWIST.C.

#define OK   1

Definition at line 20 of file TWIST.C.

#define POINT2VECTOR ( p,
 ) 
Value:
v[0]=(double)p[0]; v[1]=(double)p[1]; \
                          v[2]=(double)p[2];

Definition at line 22 of file TWIST.C.

#define VECTOR2POINT ( v,
 ) 
Value:
p[0]=(long)v[0]; p[1]=(long)v[1]; \
                          p[2]=(long)v[2];

Definition at line 24 of file TWIST.C.

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

Definition at line 26 of file TWIST.C.

#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 27 of file TWIST.C.

#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 28 of file TWIST.C.

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

Definition at line 29 of file TWIST.C.

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

Definition at line 30 of file TWIST.C.

#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 TWIST.C.


Function Documentation

void MultMV ( double  t4[4][4],
long  x,
long  y,
long  z,
long *  xx,
long *  yy,
long *  zz 
)

Definition at line 43 of file TWIST.C.

References double.

Referenced by _Xmodeler().

void CopyMM ( double  tin[4][4],
double  tout[4][4] 
)

Definition at line 51 of file TWIST.C.

Referenced by _Xmodeler().

void MultMM ( double  t1[4][4],
double  t2[4][4],
double  tr[4][4] 
)

Definition at line 58 of file TWIST.C.

Referenced by _Xmodeler().

BOOL WINAPI DllMain ( HANDLE  hDLL,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 72 of file TWIST.C.

References DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH, and TRUE.

BOOL _Xmodeler ( HWND  parent_window,
HWND  info_window,
X__STRUCTURE lpevi 
)
Generated on Tue Jan 28 06:18:35 2014 for OpenFX by  doxygen 1.6.3