PDA

Click to See Complete Forum and Search --> : Angles in VB


sparkle52988
May 19th, 2000, 11:44 PM
In QBasic, you could draw lines at any angle with the DRAW command. Is there any way to do this in VB? What about a way to just give the current coordinates, angle,and distance and get the new position? Is this possible?

kedaman
May 20th, 2000, 06:08 PM
That's just simple math:

newx=oldx*cos(angle)*distance
newy=oldy*cos(angle)*distance