The text of this article is not in this database — only its details are. Read it on the old site: Creating Analog Clock in Java
2 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Creating Analog Clock in Java
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Abhishek DubeyPosted Feb 7, 2013, 5:03 AM
it take according circle radius and angle in math
sam oberoiPosted Feb 1, 2013, 1:44 AM
please tell me how did u convert xsecond = (int) (Math.cos(second * 3.14f / 30 - 3.14f / 2) * 120 + xcenter); ysecond = (int) (Math.sin(second * 3.14f / 30 - 3.14f / 2) * 120 + ycenter); xminute = (int) (Math.cos(minute * 3.14f / 30 - 3.14f / 2) * 100 + xcenter); yminute = (int) (Math.sin(minute * 3.14f / 30 - 3.14f / 2) * 100 + ycenter); xhour = (int) (Math.cos((hour * 30 + minute / 2) * 3.14f / 180 - 3.14f / 2) * 80 + xcenter); yhour = (int) (Math.sin((hour * 30 + minute / 2) * 3.14f / 180 - 3.14f / 2) * 80 + ycenter);