You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
366 B
14 lines
366 B
1 year ago
|
function eval = shapeIEval(pt,integrand,shape,rat,tol)
|
||
|
global evalCounter;
|
||
|
eval = zeros(size(pt,1),1);
|
||
|
for i=1:size(pt,1)
|
||
|
if isContainedPt(pt(i,:),shape,rat,tol)
|
||
|
eval(i)=integrand(pt(i,1),pt(i,2));
|
||
|
else
|
||
|
eval(i)=0;
|
||
|
end
|
||
|
end
|
||
|
evalCounter=evalCounter+1;
|
||
|
scatter(pt(:,1),pt(:,2),'k.')
|
||
|
hold on
|
||
|
end
|