Get X, Y Heading Based On Degrees


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



Copy this code and paste it in your HTML
  1. import math
  2. hx = math.sin(degrees * (math.pi / 180)) * 1
  3. hy = math.cos(degrees * (math.pi / 180)) * 1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.