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


You need to login to view comments.