00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00039 #ifndef __GEOGENERIC_H
00040 #define __GEOGENERIC_H
00041
00042
00043
00045
00046
00048
00049
00051
00052
00053 #ifndef TRUE
00054 #define TRUE 1
00055 #endif
00056
00057 #ifndef FALSE
00058 #define FALSE 0
00059 #endif
00060
00061 #ifdef __WIN32
00062 #define M_E 2.7182818284590452354
00063 #define M_LOG2E 1.4426950408889634074
00064 #define M_LOG10E 0.43429448190325182765
00065 #define M_LN2 0.69314718055994530942
00066 #define M_LN10 2.30258509299404568402
00067 #define M_PI 3.14159265358979323846
00068 #define M_PI_2 1.57079632679489661923
00069 #define M_PI_4 0.78539816339744830962
00070 #define M_1_PI 0.31830988618379067154
00071 #define M_2_PI 0.63661977236758134308
00072 #define M_2_SQRTPI 1.12837916709551257390
00073 #define M_SQRT2 1.41421356237309504880
00074 #define M_SQRT1_2 0.70710678118654752440
00075 #endif
00076
00077 #ifndef EPSILON
00078 #define EPSILON (1e-6)
00079 #endif
00080
00081 #ifndef DOUBLE_EPSILON
00082 #define DOUBLE_EPSILON (1e-8)
00083 #endif
00084
00085 #ifndef MIN
00086 #define MIN(a,b) (((a) < (b)) ? (a) : (b))
00087 #endif
00088 #ifndef MAX
00089 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
00090 #endif
00091
00092
00093
00094 #endif