Hello Guest it is April 24, 2024, 11:54:24 PM

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

0 Members and 1 Guest are viewing this topic.

angle of a line between 2 points
« 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

Offline Repmo

*
  •  54 54
    • View Profile
Re: angle of a line between 2 points
« Reply #1 on: December 28, 2008, 08: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, 12:41:25 PM »
Thank you .