Hi All,

Im making a clock in java and i need help drawing the minutes and hours hand. I have done some maths and came up with the following formula

The formula i am using above is x = a + rCos(t)

y = b + rSin(t)

where (x,y) are the points on the circle i am trying to find and (a,b) is the centre of the circle. t is the angle between the x-axis and the line joining (a,b) and (x,y)

My clock is drawing perfectly, only it is 90degrees clockwise, so 12.00 looks like 15.00.

Ive tried to add/subtract degrees to the formula but its not working.

ive only shown the problematic code above, i can show the rest if needed.

Thanks you very much for looking at this,

Shady