You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I found an issue where the pki function miscalculates the Yo and Yi values when dy is non-zero. For example, Yo's calculation is "h - (h - Cy) + dy - Ro * Math.sin(alpha)" however I believe that dy should be removed because Cy already translates Cy by dy, so Yo was being double translated by dy in effect. Same goes for Yi.
Thanks,
Mike Dearman
The text was updated successfully, but these errors were encountered:
Ya, it took some time to dig into the math for us too..
I created two sample files – one with the issue, one with it fixed (which includes the fixed js file).
I'm not sure how to get the samples over to you though.
As a synopsis, I used the auto-adjust.htm sample, changed g1's height to 375px.
To fix, I removed the "+ dy" part when calculating Yo and Yi.
I am using version dated 31/07/2012 version 1,0.
I think I found an issue where the pki function miscalculates the Yo and Yi values when dy is non-zero. For example, Yo's calculation is "h - (h - Cy) + dy - Ro * Math.sin(alpha)" however I believe that dy should be removed because Cy already translates Cy by dy, so Yo was being double translated by dy in effect. Same goes for Yi.
Thanks,
Mike Dearman
The text was updated successfully, but these errors were encountered: