03 May 12, 05:39PM
(This post was last modified: 03 May 12, 05:45PM by Bloodsport.)
(01 May 12, 09:02PM)jamz Wrote: I think my maths is right; please correct me if necessary.
The return value is linearly decreasing over SCOPESETTLETIME. Since I haven't read the rest of the code, I'm not sure how that return value affects angular spread so it might still be incorrect to describe the spread decay as linear. To make the return value exponentially approach 1.0, you would need something like:
[SELECT ALL] Code:
else
return max((1.0 + ((info.spread - 1.0) * pow(0.5, scopetime * someConstant))), 1);