What is the angle of vector conecting two points?

1 次查看(过去 30 天)
Suppose I have two points P1(x1,y1) and P2(x2,y2). How can I calculate angle of vector connecting the two points?

回答(1 个)

KSSV
KSSV 2016-5-19
Angle means, it shall be anti-clockwise with respect to x -axis... use: theta = atan((y2-y1)/(x2-x1))

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by