Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bit hacky, but side-steps the call-by-call rounding error that causes needle origin drift. #2

Merged
merged 1 commit into from
Jul 23, 2011

Conversation

mauget
Copy link
Contributor

@mauget mauget commented Jul 23, 2011

Origin of needle was drifting leftward due to rounding error from repeated re-computation. I let it be computed twice before using a cached value. If gauge is re-sized I destroy the cached value for two more calls. Why two? The first call is before the needle is scaled to its final size for the current view. -Lou Mauget

…eated re-computation. I let it be computed twice before using a cached value. If gauge is re-sized I destroy the cached value for two more calls. Why two? The first call is before the needle is scaled to its final size for the current view. -Ed Mauget
PEZ added a commit that referenced this pull request Jul 23, 2011
A bit hacky, but side-steps the call-by-call rounding error that causes needle origin drift.
@PEZ PEZ merged commit eec4728 into PEZ:master Jul 23, 2011
@PEZ
Copy link
Owner

PEZ commented Jul 23, 2011

Wonderful, thanks for sharing the change back to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants