adjusted camera to v1.5

This commit is contained in:
gnembon committed 2019-10-11 08:18:40 -03:00
1 parent 01b599b8e3
commit 985b179cb2
1 file changed
+2 -4
@@ -221,11 +221,10 @@ __find_position_for_gauss(from_index, point) ->
0.6*reduce(devs, _a+_, 0)/length(devs)
);
impact = __norm_prob(path_point+point, ptime, dev);
if(rtotal && impact < 0.000001*rtotal, throw(null));
if(rtotal && impact < 0.000001*rtotal, throw());
components += l(v, impact);
rtotal += impact
)
,null
);
try(
for(range(from_index, -1, -1),
@@ -237,11 +236,10 @@ __find_position_for_gauss(from_index, point) ->
0.6*reduce(devs, _a+_, 0)/length(devs)
);
impact = __norm_prob(path_point+point, ptime, dev);
if(ltotal && impact < 0.000001*ltotal, throw(null));
if(ltotal && impact < 0.000001*ltotal, throw());
components += l(v, impact);
ltotal += impact
)
,null
);
total = rtotal+ltotal;
reduce(components, _a+_.0*(_.1/total), l(0,0,0,0,0))