Hello Guest it is February 07, 2026, 09:23:54 AM

Author Topic: angle of a line between 2 points  (Read 6285 times)

0 Members and 1 Guest are viewing this topic.

angle of a line between 2 points
« on: December 28, 2008, 01: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

Offline Repmo

*
  •  54 54
Re: angle of a line between 2 points
« Reply #1 on: December 28, 2008, 07:47:58 AM »
V = (x1 - x2) / (Y1 - Y2)

A = ATN(V)
Re: angle of a line between 2 points
« Reply #2 on: December 28, 2008, 11:41:25 AM »
Thank you .