ZeusMath-Library  2.0.4
Constants.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch)
3  *****************************************************************************
4  * Project : Zeus Math Library
5  * Module : Constants
6  * Package : Zeus.ZeusMath.System
7  * Author : Martin Abbuehl
8  * Date : 27.12.2011
9  * System : Zeus-Framework
10  *****************************************************************************
11  * Licence: *
12  * This library is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU Lesser General Public License as *
14  * published by the Free Software Foundation; either version *
15  * 2.1 of the License, or (at your option) any later version. *
16  * *
17  * This library is distributed in the hope that it will be useful, *
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
20  * GNU Lesser General Public License for more details. *
21  * *
22  * You should have received a copy of the GNU Lesser General Public *
23  * License along with this library; if not, write to the Free Software *
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA *
25  *****************************************************************************/
26 
27 /*****************************************************************************
28  * Changes:
29  * 27.12.2011 bha: created zeus 2.0
30  *****************************************************************************/
31 
32 #ifndef ConstantsH
33 #define ConstantsH
34 
36 
37 
38 BEGIN_NAMESPACE_Zeus
39 
40 
41 /******************************************************************************/
45 /******************************************************************************/
47 {
48  public:
49 
50  //Mathematical constants
51  static const Float Pi;
52  static const Float e;
53  static const Float RadiansToDegrees;
54  static const Float DegreesToRadians;
55  static const Float Sqrt2;
56 
57  //physical constants
58  static const Float SpeedOfLight;
59  static const Float GravitationConst;
60 
61  //cosmical constants
62  static const Float EarthGravitation;
63 
64  private:
65  /*************************************************************************/
68  /*************************************************************************/
69  inline TConstants() { }
70 
71 };
72 
73 END_NAMESPACE_Zeus
74 
75 #endif
static const Float SpeedOfLight
Constant of light speed in vacuum in [m * s^-1].
Definition: Constants.h:58
Definition: Constants.h:46
#define zeusmath_class
Definition: PlatformDefines.hpp:48
static const Float Sqrt2
Constant of the square root of 2.
Definition: Constants.h:55
static const Float DegreesToRadians
Constant to convert degrees to radiant.
Definition: Constants.h:54
static const Float Pi
Contant PI.
Definition: Constants.h:51
static const Float RadiansToDegrees
Constant to convert radiant to degrees.
Definition: Constants.h:53
static const Float GravitationConst
Definition: Constants.h:59
static const Float EarthGravitation
Constant of the earth gravitation m/s^2.
Definition: Constants.h:62
static const Float e
Euler constant e.
Definition: Constants.h:52


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Sep 14 2016 06:45:50