Posted: Wed Nov 10, 2004 6:06 pm Post subject: Pivoting...Rotating...HELP!!!!
Ok what Im trying to do is pivot a line in the centre of a circle.
For example the hand on a clock. I want to be able to move that hand,to
different numbers on the clock as if you were setting up the time. My
question is how do I keep the line or hand the same length while
rotating the hand? I want to pivot the hand around the center but
I dont want it to go out side of the circle or get any shorter.
It may be kind of hard to understand but if you try my program
you will understand what I mean. To change the hand you have to
click on the blue dot and hold the left mouse button down and then drag it to where you want the hand to point. But How do I keep the blue dot on the green outline of the circle...
You know what I mean? Please HELP!!!
code:
View.Set ("graphics:320;320,nobuttonbar")
var xm, ym, bm : int
var x, y := 150