-
Degree
Hey!
Can i move a line at an angle of 30, 40, 50,.... degree. Is there any method or procedure in vb which will help me do this. If so please let me know.
thanz
----------------------------------------------------------------------------------
Thanz! even if you don't help!
-
You can have the endpoint rotated around the start point. To do this, use the Cos() and Sin() (CoSine and Sine) functions. For the X variable, use NewEndX = Cos(Degree * (3.14 / 180)) * (EndX - StartX). For the Y, just use Y in place of X and change to Sin() instead of Cos().
This is just a quick example, and you'll probably need to know more to make anything else with Cos and Sin.