Trig Help : Analogue Clock hands

Blitz3D Forums/Blitz3D Beginners Area/Trig Help : Analogue Clock hands

Hi!

Being crap at trig, I am havin real difficulty plotting the position/direction for analogue clock hands.

Something similar to this:

Timer=Millisecs()

While Not KeyDown(1)

Oval 50,50,100,100,0
Line 100,100,XXX,YYY

If Millisecs()-Timer>1000
   Seconds=Seconds+1
   If Seconds>59 Then Seconds=0
   Timer=Millisecs()
End If

Flip
Wend




I need the functions/formulae for XXX and YYY to convert Seconds into coordinates.

http://www.blitzbasic.com/codearcs/codearcs.php?code=317

Cheers Rob - just what I needed very easy to mainpulate and customise!!!