draw - Drawing lines at angle vb.net -


i can find plenty of examples of how draw line in vb.net online.

i cannot find examples of how draw lines @ specific angle.

could tell me how this?

you'll need bit of math using sin/cos.

x1,y1 = starting position of line angleinradian = angle on line converted radian

x2 = linelength * math.cos(angleinradian) + x1 y2 = linelength * math.sin(angleinradian) + y1 

then can draw line (x1, y1) (x2, y2)


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -