source: golgotha/src/i4/math/pi.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 740 bytes
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef I4_PI_HH
10#define I4_PI_HH
11
12#include "math/num_type.hh"
13
14inline i4_float i4_pi() { return 3.141592654; }
15inline i4_float i4_2pi() { return 2.0*3.141592654; }
16inline i4_float i4_deg2rad(i4_float deg) { return deg/180.0*i4_pi(); }
17
18#endif
19
Note: See TracBrowser for help on using the repository browser.