aicodix___dsp/const.hh
2018-08-03 21:14:24 +02:00

24 lines
536 B
C++

/*
Some constants
Copyright 2018 Ahmet Inan <inan@aicodix.de>
*/
#ifndef CONST_HH
#define CONST_HH
namespace DSP {
template <typename T>
struct Const {
static inline T FourthPi() { return 0.78539816339744830962; } // 1*a(1)
static inline T HalfPi() { return 1.57079632679489661923; } // 2*a(1)
static inline T Pi() { return 3.14159265358979323846; } // 4*a(1)
static inline T TwoPi() { return 6.28318530717958647693; } // 8*a(1)
static inline T FourPi() { return 12.56637061435917295385; } // 16*a(1)
};
}
#endif