67 lines
1.7 KiB
C++
Executable File
67 lines
1.7 KiB
C++
Executable File
// **************************************************************************
|
|
//
|
|
// (C) Copyright 2009 Swiss SIMTEC AG
|
|
//
|
|
// **************************************************************************
|
|
//
|
|
// $HeadURL$
|
|
// $LastChangedBy$
|
|
// $LastChangedDate$
|
|
// $LastChangedRevision$
|
|
//
|
|
// **************************************************************************
|
|
|
|
#ifndef CONSTANTS_HPP
|
|
#define CONSTANTS_HPP 1
|
|
|
|
|
|
//============================================================================
|
|
// additional include file(s)
|
|
//============================================================================
|
|
#include "Types.hpp"
|
|
|
|
namespace N_SST
|
|
{
|
|
|
|
//==========================================================================
|
|
// constant definitions
|
|
//==========================================================================
|
|
|
|
// Archimedes' Constant
|
|
//---------------------
|
|
const Float64 PI = 3.141592653589793;
|
|
|
|
// Natural Logarithmic Base
|
|
//-------------------------
|
|
const Float64 E = 2.718281828459045;
|
|
|
|
// acceleration due to gravity m/s*s
|
|
//----------------------------------
|
|
const Float64 G = 9.81;
|
|
|
|
// Euler's Constant
|
|
//-----------------
|
|
const Float64 GAMMA = 0.577215664901532;
|
|
|
|
// Golden Ratio
|
|
//-------------
|
|
const Float64 PHI = 1.618033988749894;
|
|
|
|
const Float64 PI_OVER_2 = PI / 2.0;
|
|
const Float64 PI_OVER_4 = PI / 4.0;
|
|
const Float64 TWO_PI = PI * 2.0;
|
|
const Float64 ONE_OVER_TWO_PI = 1.0 / TWO_PI;
|
|
const Float64 INV_PI = 0.318309886183790;
|
|
const Float64 INV_E = 0.367879441171442;
|
|
|
|
const Float64 INV_PI_OVER_180 = 180.0 / PI;
|
|
const Float64 PI_OVER_180 = PI / 180.0;
|
|
|
|
const Float64 ZERO_CELSIUS_IN_KELVIN = 273.16;
|
|
|
|
} // namespace N_SST
|
|
|
|
#endif
|
|
|
|
|