//=========================================================================== // GoTools Core - SINTEF Geometry Tools Core library, version 2.0.1 // // Copyright (C) 2000-2007, 2010 SINTEF ICT, Applied Mathematics, Norway. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., // 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // // Contact information: E-mail: tor.dokken@sintef.no // SINTEF ICT, Department of Applied Mathematics, // P.O. Box 124 Blindern, // 0314 Oslo, Norway. // // Other licenses are also available for this software, notably licenses // for: // - Building commercial software. // - Building software whose source code you wish to keep private. //===========================================================================
00001 #ifndef _VALUES_H_ 00002 #define _VALUES_H_ 00003 00004 00005 #include <limits> 00006 00007 00008 //#ifndef MICROSOFT 00009 //#include <values.h> 00010 //#endif 00011 00012 #ifndef MAXINT 00013 // #define MAXINT 2147483647; 00014 const int MAXINT = std::numeric_limits<int>::max(); 00015 #endif 00016 00017 #ifndef MAXDOUBLE 00018 // #define MAXDOUBLE 1.79769313486231570e+308 00019 const double MAXDOUBLE = std::numeric_limits<double>::max(); 00020 #endif 00021 00022 #ifndef M_PI 00023 const double M_PI = 3.14159265358979323846; 00024 #endif 00025 00026 #ifndef DEFAULT_SPACE_EPSILON 00027 #define DEFAULT_SPACE_EPSILON 1e-10 00028 #endif 00029 00030 #ifndef DEFAULT_PARAMETER_EPSILON 00031 //#define DEFAULT_PARAMETER_EPSILON 1e-12 00032 #define DEFAULT_PARAMETER_EPSILON 1e-10 00033 #endif 00034 00035 00036 #endif 00037