Trig Help : Analogue Clock hands

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

_PJ_(Posted 2004) [#1]
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.


Rob Farley(Posted 2004) [#2]
http://www.blitzbasic.com/codearcs/codearcs.php?code=317


_PJ_(Posted 2004) [#3]
Cheers Rob - just what I needed very easy to mainpulate and customise!!!