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?
Printable View
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?
That's just simple math:
Code:newx=oldx*cos(angle)*distance
newy=oldy*cos(angle)*distance