Finishing global variables

parent b6429706
......@@ -22,16 +22,19 @@
#include <vector>
#include <cmath>
static const double g_dSoundPower_94dB_SPL_1m = 1.0f; // [W] Sound power that results in 94 dB SPL re 20uPa @ 1m for spherical spreading
static const double g_dDefaultSoundPower_128dB_SPL_1m = 1.0f; // [W] Sound power that results in 124 dB SPL re 20uPa @ 1m for spherical spreading
static const double g_dDefaultSpeedOfSound = 344.0f; // [m/s]
static const double g_dDefaultStaticPressure = 101125; // [Pa]
static const double g_dDefaultTemperature = 20; // [Degree centigrade]
static const double g_dDefaultRelativeHumidity = 20; // [Percent]
// L_w = L_p + 10 * log10( 1m / 1m ) dB re 1pW + 10 * log10 ( 4 * pi ) dB re 1pW; P = 10^( L_w / 10 ) * 1pW
static const double g_dSoundPower_94dB_SPL_1m = 0.0316227766f; //!< [W] Sound power that results in 94 dB SPL re 20uPa @ 1m for spherical spreading
static const double g_dDefaultSoundPower_128dB_SPL_1m = 31.6227766017f; //!< [W] Sound power that results in 124 dB SPL re 20uPa @ 1m for spherical spreading
// c ~= ( 331.5 + 0.6 * 20 degree / degree ) m/s
static const double g_dDefaultSpeedOfSound = 343.0f; //!< [m/s] Sound speed at 20 degree centigrade with adiabatic approximation
static const double g_dDefaultStaticPressure = 101325.0f; //!< [Pa] Norm pressure over NN; 1 bar; 1 atmosphere; *100 hPa
static const double g_dDefaultTemperature = 20.0f; //!< [Degree centigrade] Arbitrarily defined, satisfactory for indoor and outdoor
static const double g_dDefaultRelativeHumidity = 20.0f; //!< [Percent]
//! 3-element Vector (double precision), in a geometrical context in meters (if not stated otherwise)
/**
* Uses cartesian style, mostly used in OpenGL-rotation convention context
* Uses Cartesian style, mostly operated within OpenGL-rotation convention context (especially for view-up direction vectors)
*/
class VABASE_API VAVec3
{
......
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