Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

GeoGeneric.h

Go to the documentation of this file.
00001 /*
00002  * GeoGeneric.h
00003  * $Id: GeoGeneric.h,v 1.1.1.1 2001/06/06 15:36:52 guenth Exp $
00004  *
00005  * Copyright (C) 1999, 2000 Michael Meissner
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  */
00022 
00032 #ifndef __GEOGENERIC_H
00033 #define __GEOGENERIC_H
00034 
00035 
00036 // Qt
00038 
00039 // System
00041 
00042 // Own
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

Generated at Thu Oct 4 17:17:25 2001 for QGLViewer by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001