Skip to content
Snippets Groups Projects
Commit 752e4d43 authored by Matthias Tillmann's avatar Matthias Tillmann
Browse files

Reformat

parent ae907c71
Branches
No related tags found
2 merge requests!27Draft: Development for the combination of PELICAN with the other birds within pynamic,!14Feature/reflection
Pipeline #1648498 failed
......@@ -13,9 +13,7 @@ using namespace ITAPropagationModels::PPE;
//! @brief register to factory
bool PropModules::CBasicReflection::registered = CFactory::registerModule<BasicReflectionConfig, CBasicReflection>( );
PropModules::CBasicReflection::CBasicReflection( const float scale )
{
}
PropModules::CBasicReflection::CBasicReflection( const float scale ) {}
PropModules::CBasicReflection::CBasicReflection( )
{
......@@ -29,8 +27,6 @@ PropModules::CBasicReflection::CBasicReflection( )
{
throw std::runtime_error( "CBasicDiffraction: Could not cast config to derived config!" );
}
}
std::valarray<std::complex<float>> CalculateReflectionFactor( const decltype( au::radians( float( ) ) ) theta,
......@@ -132,7 +128,8 @@ PPLResults PropModules::CBasicReflection::compute( const propagation_path_list::
decltype( au::radians( float( ) ) ) theta = UtilsPPE::CalcAngleVectors( v3SourcePos - v3ReflectionPos, v3SurfaceNormal );
// Calculate reflection factor and multiply with previous path spectrum
std::valarray<std::complex<float>> vReflectionFactor =
CalculateReflectionFactor( theta, resultMaterial->second, config->bins, config->sampling_rate, config->speed_of_sound, config->air_density, m_extrapolate_before_interpolate );
CalculateReflectionFactor( theta, resultMaterial->second, config->bins, config->sampling_rate, config->speed_of_sound, config->air_density,
m_extrapolate_before_interpolate );
pathSpectrum *= vReflectionFactor;
}
else
......
......@@ -23,7 +23,6 @@ void outputFreqSpectrum( const std::string id, const std::valarray<std::complex<
}
TEST_CASE( "Geometry" )
{
au::Quantity<au::Radians, float> fAngleEpsilon = au::degrees( 0.05f ).as( au::radians );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment