gramods
Loading...
Searching...
No Matches
SoundConstants.hh
1
2#ifndef GRAMODS_CORE_SOUNDCONSTANTS
3#define GRAMODS_CORE_SOUNDCONSTANTS
4
5#include <gmMisc/PolyFit.hh>
6
7namespace gramods {
11constexpr float SPEED_OF_SOUND_T20 = 343.f;
12
16constexpr float SPEED_OF_SOUND_T0 = 331.f;
17
24 {30},
25 {25},
26 {20},
27 {15},
28 {10},
29 {5},
30 {0},
31 {-5},
32 {-10},
33 {-15},
34 {-20},
35 {-25}},
36 {{351.88},
37 {349.02},
38 {346.13},
39 {343.21},
40 {340.27},
41 {337.31},
42 {334.32},
43 {331.30},
44 {328.25},
45 {325.18},
46 {322.07},
47 {318.94},
48 {315.77}},
49 2);
50}
51
52#endif
This is a polygonal fitter for any number of in- and output dimensions allowing for inter- and extrap...
Definition PolyFit.hh:21
Gramods, short for Graphics Modules, is a collection of weakly inter dependent and useful APIs for Vi...
Definition config.hh:25
const gmMisc::PolyFit SPEED_OF_SOUND({{35}, {30}, {25}, {20}, {15}, {10}, {5}, {0}, {-5}, {-10}, {-15}, {-20}, {-25}}, {{351.88}, {349.02}, {346.13}, {343.21}, {340.27}, {337.31}, {334.32}, {331.30}, {328.25}, {325.18}, {322.07}, {318.94}, {315.77}}, 2)
Second order approximation of the speed of sound in standard air, based on table at Wikipedia.
constexpr float SPEED_OF_SOUND_T20
The speed of sound in standard air at 20°C.
Definition SoundConstants.hh:11
constexpr float SPEED_OF_SOUND_T0
The speed of sound in standard air at 0°C.
Definition SoundConstants.hh:16