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