Skip to content
Snippets Groups Projects
Commit 34e5053a authored by frey.balazs96's avatar frey.balazs96 :eggplant:
Browse files

nem emlékszem

parent 14009748
No related merge requests found
...@@ -7,7 +7,7 @@ classdef FarField ...@@ -7,7 +7,7 @@ classdef FarField
methods (Static) methods (Static)
function field = CalculateFarField(ntheta, nfi, apertureSize, wavelength, histogram) function field = CalculateFarField(ntheta, nfi, apertureSize, wavelength, histogram)
field = zeros(1, ntheta); field = zeros(1, ntheta);
theta = linspace(-pi/18, pi/18, ntheta); theta = linspace(-pi/6, pi/6, ntheta);
fi = linspace(0, 2*pi, nfi); fi = linspace(0, 2*pi, nfi);
nr = floor(length(histogram)/2); nr = floor(length(histogram)/2);
r = linspace(0, apertureSize/2, nr); r = linspace(0, apertureSize/2, nr);
......
...@@ -37,9 +37,9 @@ classdef Trace < handle ...@@ -37,9 +37,9 @@ classdef Trace < handle
ncol = ncol + 1; ncol = ncol + 1;
next_ray = Ray(col.pos, col.reflDir); next_ray = Ray(col.pos, col.reflDir);
obj.rays(end+1) = next_ray; obj.rays(end+1) = next_ray;
barriers(col_barrier).post_collide(col, obj);
if col.stop if col.stop
obj.trace_end(); obj.trace_end();
barriers(col_barrier).post_collide(col, obj);
break; break;
end end
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment