include/vamos/geometry/Constants.h

Go to the documentation of this file.
00001 //      Vamos - a driving simulator
00002 //  Copyright (C) 2003 Sam Varner
00003 //
00004 //  This program is free software; you can redistribute it and/or modify
00005 //  it under the terms of the GNU General Public License as published by
00006 //  the Free Software Foundation; either version 2 of the License, or
00007 //  (at your option) any later version.
00008 //
00009 //  This program is distributed in the hope that it will be useful,
00010 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 //  GNU General Public License for more details.
00013 //
00014 //  You should have received a copy of the GNU General Public License
00015 //  along with this program; if not, write to the Free Software
00016 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017 
00018 #ifndef _CONSTANTS_H_
00019 #define _CONSTANTS_H_
00020 
00021 #include <cmath>
00022 
00023 namespace Vamos_Geometry
00024 {
00025 #ifdef M_PI
00026   const double pi = M_PI;
00027 #else
00028   const double pi = 3.14159265358979323846;
00029 #endif
00030   const double two_pi = 2.0 * pi;
00031 
00032 #ifdef M_SQRT2
00033   const double root_2 = M_SQRT2;
00034 #else
00035   const double root_2 = 1.41421356237309504880;
00036 #endif
00037 
00038   enum Side { LEFT, RIGHT };
00039 }
00040 
00041 #endif

Generated on Thu Oct 19 04:05:47 2006 by  doxygen 1.4.6