JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::SpeedOfSound Class Reference

Speed of sound utility. More...

#include <JPLSpatial/SpeedOfSound.h>

Static Public Member Functions

static constexpr float ForTemperature (float temperatureC)
 

Static Public Attributes

static constexpr float cReference = 343.2f
 
static constexpr float cInvReference = 1.0f / cReference
 

Detailed Description

Speed of sound utility.

Member Function Documentation

◆ ForTemperature()

static constexpr float JPL::SpeedOfSound::ForTemperature ( float  temperatureC)
inlinestaticconstexpr

Compute speed of sound for temperature in m/s.

Parameters
temperatureCis temperature in C, to calculate speed of sound for

Member Data Documentation

◆ cInvReference

constexpr float JPL::SpeedOfSound::cInvReference = 1.0f / cReference
staticconstexpr

◆ cReference

constexpr float JPL::SpeedOfSound::cReference = 343.2f
staticconstexpr

The documentation for this class was generated from the following file: