how do i find out pixel value at certain degree on the circumference of a circle if I know the pixel co-ordinates of the center of the circle, radius of the circle ,and perpendicular angle.
Basically, I am trying to draw the hands of a clock at various times ( 1 o clock , 2 o clock etc )
how do i find out pixel value at certain degree on the circumference of
Share
Let
hbe the hour as a floating point number (h=2.25would be 02:15, etc.) between 0 and 12.(cX,cY)are the coordinates of the center.hLengthandmLengthare the lengths of the hour and min hands.