Skip to content
Snippets Groups Projects
Commit 51aee2b4 authored by lmaresz's avatar lmaresz
Browse files

Update RTX class/SegmentedAperture.m

parent a680648b
Branches
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ classdef SegmentedAperture < Aperture
segments SegmentArray;
prevTrace = Trace(Inf, Ray([0 0],[0 0], 0), 0, [], 0);
prevCol;
isSegmented = false;
end
methods
function obj = SegmentedAperture(center, size)
......@@ -26,7 +27,10 @@ classdef SegmentedAperture < Aperture
end
function [histogram, xStart, xStop] = getCollisionHistogram(obj)
if ~obj.isSegmented
obj.segments = obj.segments.doTheThing2();
obj.isSegmented = true;
end
histogram = [obj.segments.segs.powDens];
xStart = [obj.segments.segs.posStart];
xStop = [obj.segments.segs.posEnd];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment