Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

clip.h File Reference

Go to the source code of this file.

Defines

#define CLIP(x, y, z)   ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x)))
#define RECLIP(x, y, z)   ((x) = ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x))))
#define CLAMP(x, y, z)   ((x) = ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x))))
#define MAX(x, y)   ((x) > (y) ? (x) : (y))
#define MIN(x, y)   ((x) < (y) ? (x) : (y))
#define EQUIV(x, y)   (fabs((x) - (y)) < 0.001)
#define DISTANCE(x1, y1, x2, y2)   (sqrt(((x2) - (x1)) * ((x2) - (x1)) + ((y2) - (y1)) * ((y2) - (y1))))


Define Documentation

#define CLAMP x,
y,
 )     ((x) = ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x))))
 

Definition at line 8 of file clip.h.

#define CLIP x,
y,
 )     ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x)))
 

Definition at line 6 of file clip.h.

#define DISTANCE x1,
y1,
x2,
y2   )     (sqrt(((x2) - (x1)) * ((x2) - (x1)) + ((y2) - (y1)) * ((y2) - (y1))))
 

Definition at line 12 of file clip.h.

#define EQUIV x,
 )     (fabs((x) - (y)) < 0.001)
 

Definition at line 11 of file clip.h.

#define MAX x,
 )     ((x) > (y) ? (x) : (y))
 

Definition at line 9 of file clip.h.

#define MIN x,
 )     ((x) < (y) ? (x) : (y))
 

Definition at line 10 of file clip.h.

#define RECLIP x,
y,
 )     ((x) = ((x) < (y) ? (y) : ((x) > (z) ? (z) : (x))))
 

Definition at line 7 of file clip.h.


Generated on Sun Jan 8 13:26:35 2006 for Guicast-svn by  doxygen 1.4.4