Calculating Degrees Between Two Points (Vectors)


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import math
  2. radians = math.atan2(y2 - y1, x2 - x1)
  3. degrees = math.degrees(radians)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.