Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GeoGeneric.h

Go to the documentation of this file.
00001 /* 00002 * GeoGeneric.h 00003 * $Id: GeoGeneric.h,v 1.3 2003/06/24 14:50:02 anxo 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 * As a special exception to the GPL, the QGLViewer authors (Markus 00022 * Janich, Michael Meissner, Richard Guenther, Alexander Buck and Thomas 00023 * Woerner) give permission to link this program with Qt (non-)commercial 00024 * edition, and distribute the resulting executable, without including 00025 * the source code for the Qt (non-)commercial edition in the source 00026 * distribution. 00027 * 00028 */ 00029 00039 #ifndef __GEOGENERIC_H 00040 #define __GEOGENERIC_H 00041 00042 00043 // Qt 00045 00046 // System 00048 00049 // Own 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

Generated on Wed Jul 28 02:09:12 2004 for QGLViewer by doxygen 1.3.7