Posted By

gdvickery on 12/18/09


Tagged

python game 2d


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

gartenstuhl


Calculating Degrees Between Two Points (Vectors)


 / Published in: Python
 

  1. import math
  2. radians = math.atan2(y2 - y1, x2 - x1)
  3. degrees = math.degrees(radians)

Report this snippet  

You need to login to post a comment.