added const.hh for some constants

This commit is contained in:
Ahmet Inan 2018-03-04 08:23:57 +01:00
commit 4e00849662
2 changed files with 25 additions and 0 deletions

21
const.hh Normal file
View file

@ -0,0 +1,21 @@
/*
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 Pi() { return 3.14159265358979323846; } // 4*a(1)
static inline T TwoPi() { return 6.28318530717958647693; } // 8*a(1)
};
}
#endif