Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

common.h

00001 //
00002 // OpenVRML
00003 //
00004 // Copyright (C) 2001  Braden McDaniel
00005 // 
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License, or (at your option) any later version.
00010 // 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 // 
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 // 
00020 
00021 # ifndef OPENVRML_COMMON_H
00022 #   define OPENVRML_COMMON_H
00023 
00024 #   if defined(_WIN32)
00025 #     if defined(DLL_EXPORT)
00026 #       define OPENVRML_SCOPE __declspec(dllexport)
00027 #     elif defined(OPENVRML_DLL_IMPORT)
00028 #       define OPENVRML_SCOPE __declspec(dllimport)
00029 #     endif
00030 #   endif
00031 #   if !defined(OPENVRML_SCOPE)
00032 #     define OPENVRML_SCOPE
00033 #   endif
00034 
00035 namespace OpenVRML {
00036 
00037     const double pi     = 3.14159265358979323846;
00038     const double pi_2   = 1.57079632679489661923;
00039     const double pi_4   = 0.78539816339744830962;
00040     const double inv_pi = 0.31830988618379067154;
00041 }
00042 
00043 # endif