Skip to content
Snippets Groups Projects

Feature/pigeon 2024

Merged Pascal Palenda requested to merge feature/pigeon-2024 into develop
Files
10
function sourceWFNormals = SourceWFNormals(urbanPaths,atmoPath)
function sourceWFNormals = SourceWFNormals(urbanPaths,atmoPath, convertART2OpenGL)
%SOURCEWFNORMALS Calculates the wavefront normals at the source for given
%urban paths. The wavefront normals are rotated according to
%the difference between the source WF normal of the atmospheric path and
@@ -12,6 +12,9 @@ virtualWFNormal = virtualWFNormal / norm(virtualWFNormal);
atmoWFNormal = atmoPath.n0.cart;
atmoWFNormal = atmoWFNormal / norm(atmoWFNormal);
if convertART2OpenGL
atmoWFNormal = [atmoWFNormal(1) atmoWFNormal(3) -atmoWFNormal(2)];
end
rotMat = RotationMatrix(virtualWFNormal, atmoWFNormal);
Loading