Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: swetha22 on December 28, 2008, 02:17:10 AM

Title: angle of a line between 2 points
Post by: swetha22 on December 28, 2008, 02:17:10 AM
Hi, i want to calculate the angle of a line between 2 points (x1,y1)-(x2,y2).Is there any built in function for this in mach?
please  help me out with formula code.
Thanks
Krishna
Title: Re: angle of a line between 2 points
Post by: Repmo on December 28, 2008, 08:47:58 AM
V = (x1 - x2) / (Y1 - Y2)

A = ATN(V)
Title: Re: angle of a line between 2 points
Post by: swetha22 on December 28, 2008, 12:41:25 PM
Thank you .