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

About code problem #45

Open
GithubRyze opened this issue Jul 29, 2016 · 0 comments
Open

About code problem #45

GithubRyze opened this issue Jul 29, 2016 · 0 comments

Comments

@GithubRyze
Copy link

Dear friend:
long time ago, I was download this project for study how to draw view! but i do't understand you calculate the Thumb position at all !
int arcStart = (int)mProgressSweep + mStartAngle + mRotation + 90;
mThumbXPos = (int) (mArcRadius * Math.cos(Math.toRadians(arcStart)));
mThumbYPos = (int) (mArcRadius * Math.sin(Math.toRadians(arcStart)));
and in onDraw function:
canvas.translate.(mTranslateX - mThumbXPos,mTranslateY - mThumbYPos);

why arcStart value need add mRotation and 90 ???? if you viewed my question please tell me? thank very much!! and it is very nice to solved the diff quadrant problem!!

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

No branches or pull requests

1 participant