ORIENT.H File Reference

Go to the source code of this file.

Data Structures

struct  Orient_WORKFACE
 Internal structure used by orientation modelling action (DLL). More...
struct  Orient_VTXADJ
 Internal structure used by orientation modelling action (DLL). More...

Defines

#define min(a, b)   ( ((a) < (b)) ? (a) : (b) )
#define max(a, b)   ( ((a) > (b)) ? (a) : (b) )
#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)
#define POINT2VECTOR(p, v)
#define VECTOR2POINT(v, p)
#define NO   0
#define YES   1
#define FAIL   -1
#define OK   1

Typedefs

typedef struct Orient_WORKFACE workface
 Internal structure used by orientation modelling action (DLL).
typedef struct Orient_VTXADJ vtxadj
 Internal structure used by orientation modelling action (DLL).


Define Documentation

#define min ( a,
 )     ( ((a) < (b)) ? (a) : (b) )

Definition at line 29 of file ORIENT.H.

#define max ( a,
 )     ( ((a) > (b)) ? (a) : (b) )

Definition at line 32 of file ORIENT.H.

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

Definition at line 34 of file ORIENT.H.

#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 35 of file ORIENT.H.

#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 36 of file ORIENT.H.

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

Definition at line 37 of file ORIENT.H.

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

Definition at line 38 of file ORIENT.H.

#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 39 of file ORIENT.H.

#define POINT2VECTOR ( p,
 ) 

Value:

v[0]=(double)p[0]; v[1]=(double)p[1]; \
                          v[2]=(double)p[2];

Definition at line 44 of file ORIENT.H.

#define VECTOR2POINT ( v,
 ) 

Value:

p[0]=(long)v[0]; p[1]=(long)v[1]; \
                          p[2]=(long)v[2];

Definition at line 46 of file ORIENT.H.

#define NO   0

Definition at line 49 of file ORIENT.H.

#define YES   1

Definition at line 50 of file ORIENT.H.

#define FAIL   -1

Definition at line 51 of file ORIENT.H.

#define OK   1

Definition at line 52 of file ORIENT.H.


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