Xmipp  v3.23.11-Nereus
defines.h
Go to the documentation of this file.
1 #ifndef DEFINES_H
2 #define DEFINES_H
3 
4 //#define DEBUG
5 //#define DEBUG_CLOSEST
6 //#define DEBUG_TWO_CLOSEST
7 //#define WINDOWS
8 //#define DELAUNAY_STATISTICS
9 //#define LOCATION_STATISTICS
10 
11 // MACROS DEFINITIONS
12 #define MIN(a,b) (((a)<(b))?(a):(b))
13 #define MAX(a,b) (((a)>(b))?(a):(b))
14 
15 // Trigonometric defines.
16 #ifndef PI
17 #define PI 3.1415926535
18 #endif
19 
20 #define FAILURE 0
21 #define SUCCESS 1
22 
23 // Boolean defines.
24 #define FALSE 0
25 #define TRUE 1
26 
27 // Validity defines.
28 #define VALID 1
29 #define INVALID -1
30 
31 #define DELTA_DIFF 0.05
32 
33 // Imaginary points.
34 #define P_MINUS_1 -1
35 #define P_MINUS_2 -2
36 
37 // Window size
38 #define MAX_X_COORD 10000
39 #define MAX_Y_COORD 10000
40 
41 // File name max length.
42 #ifndef FILENAME_MAX
43 #define FILENAME_MAX 200
44 #endif
45 
46 #define FLOAT_TYPE
47 #define TYPE float
48 
49 // Point coordinate type.
50 #define POINT_T TYPE
51 
52 // Define Kilobyte size.
53 #define SIZE_OF_KB 1024.0
54 
55 #endif