/*************************************************************************** pi.h - M_PI constant ------------------- copyright : (C) 2007 by CJP email : cornware-cjp@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * 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; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* This is just a small convenience file, so that pi isn't defined a thousand times all over the source code */ #ifndef PI_H #define PI_H #include #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #endif