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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -