Commit 7ba298c5 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Fixing link problem with inline and semicoli added

parent 0893928d
#include "Worker.h"
// ITA includes
#include <ITAPropagationPathSim/AtmosphericRayTracing/Simulation/Engine.h>
#include "RayResolutionAdapter.h"
#include <ITAPropagationPathSim/AtmosphericRayTracing/RayGrid.h>
//#include <ITAPropagationPathSim/AtmosphericRayTracing/Simulation/Engine.h>
//#include "RayResolutionAdapter.h"
//#include <ITAPropagationPathSim/AtmosphericRayTracing/RayGrid.h>
// Vista includes
//#include <VistaInterProcComm/Concurrency/VistaThread.h>
// STD
using namespace ITAPropagationPathSim::AtmosphericRayTracing;
using namespace ITAPropagationPathSim::AtmosphericRayTracing::EigenraySearch;
float ITAPropagationPathSim::AtmosphericRayTracing::EigenraySearch::DistanceToReceiver( const VistaVector3D& point, const VistaVector3D& receiverPos, const unsigned int& reflectionOrder )
{
return VectorToReceiver( point, receiverPos, reflectionOrder ).GetLength();
}
VistaVector3D ITAPropagationPathSim::AtmosphericRayTracing::EigenraySearch::VectorToReceiver( const VistaVector3D& point, const VistaVector3D& receiverPos, const unsigned int& reflectionOrder )
{
return VirtualReceiverPosition2( receiverPos, reflectionOrder ) - point;
}
......@@ -62,14 +62,14 @@ namespace ITAPropagationPathSim
// }
//};
VistaVector3D VirtualReceiverPosition2(const VistaVector3D& receiverPos, const unsigned int& reflectionOrder) {
inline VistaVector3D VirtualReceiverPosition2(const VistaVector3D& receiverPos, const unsigned int& reflectionOrder) {
VistaVector3D out = receiverPos;
if (reflectionOrder % 2 != 0) //On uneven reflection order
out[Vista::Z] = -out[Vista::Z];
return out;
}
VistaVector3D VectorToReceiver(const VistaVector3D& point, const VistaVector3D& receiverPos, const unsigned int& reflectionOrder) { return VirtualReceiverPosition2(receiverPos, reflectionOrder) - point; }
float DistanceToReceiver(const VistaVector3D& point, const VistaVector3D& receiverPos, const unsigned int& reflectionOrder) { return VectorToReceiver(point, receiverPos, reflectionOrder).GetLength(); }
VistaVector3D VectorToReceiver( const VistaVector3D& point, const VistaVector3D& receiverPos, const unsigned int& reflectionOrder );
float DistanceToReceiver( const VistaVector3D& point, const VistaVector3D& receiverPos, const unsigned int& reflectionOrder );
class CWorkerBase : public Simulation::IAbortCriterion
{
......
Supports Markdown
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