Commit 13249b91 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

More constants

parent a521732e
/*
* ----------------------------------------------------------------
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-2016
*
* ----------------------------------------------------------------
* ____ __________ _______
* // / //__ ___/ // _ |
* // / // / // /_| |
* // / // / // ___ |
* //__/ //__/ //__/ |__|
*
* ----------------------------------------------------------------
*
*/
// $Id: ITAConstants.h 1785 2011-04-12 18:02:47Z fwefers $
* ----------------------------------------------------------------
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-2016
*
* ----------------------------------------------------------------
* ____ __________ _______
* // / //__ ___/ // _ |
* // / // / // /_| |
* // / // / // ___ |
* //__/ //__/ //__/ |__|
*
* ----------------------------------------------------------------
*
*/
#ifndef INCLUDE_WATCHER_ITA_CONSTANTS
#define INCLUDE_WATCHER_ITA_CONSTANTS
......@@ -25,20 +24,34 @@
// STL
#include <cmath>
#include <limits>
#include <climits>
namespace ITAConstants
{
// Pi constants (float)
static float HALF_PI_F = std::acos( 0.0f );
static float PI_F = std::acos( -1.0f );
static float TWO_PI_F = 2 * std::acos( -1.0f );
// Pi-Konstanten (float)
static float HALF_PI_F = std::acos(0.0f);
static float PI_F = std::acos(-1.0f);
static float TWO_PI_F = 2 * std::acos(-1.0f);
// Pi constants (double)
static double HALF_PI_D = std::acos( 0.0 );
static double PI_D = std::acos( -1.0 );
static double TWO_PI_D = 2 * std::acos( -1.0 );
// Pi constants (literals, float)
static float PI_F_L = 3.14159265358979323846264338327950288419716939937510f;
static float TWO_PI_F_L = 6.283185307179586476925286766559f;
static float HALF_PI_F_L = 1.5707963267948966192313216916397514f;
// Pi constants (literals, double)
static double PI_D_L = 3.14159265358979323846264338327950288419716939937510f;
static double TWO_PI_D_L = 6.283185307179586476925286766559f;
static double HALF_PI_D_L = 1.5707963267948966192313216916397514f;
// Epsilon (distance quantization)
static float EPS_F_L = 1.0e-5f;
static double EPS_D_L = 1.0e-5f;
// Pi-Konstanten (double)
static double HALF_PI_D = std::acos(0.0);
static double PI_D = std::acos(-1.0);
static double TWO_PI_D = 2 * std::acos(-1.0);
// Symbolische Konstante für den Verstärkungsfaktor -oo dB
/* TODO: Dies ist hardgecodet eine verdammt große Double-Zahl.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment