What is the angle of vector conecting two points?
Show older comments
Suppose I have two points P1(x1,y1) and P2(x2,y2). How can I calculate angle of vector connecting the two points?
2 Comments
TastyPastry
on 19 May 2016
The angle of the vector and what? The x or y axis?
K M Ibrahim Khalilullah
on 19 May 2016
Answers (1)
KSSV
on 19 May 2016
0 votes
Angle means, it shall be anti-clockwise with respect to x -axis... use: theta = atan((y2-y1)/(x2-x1))
1 Comment
K M Ibrahim Khalilullah
on 19 May 2016
Categories
Find more on Image Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!