Skip to content

Instantly share code, notes, and snippets.

@kreedz
Created March 31, 2016 18:52
Show Gist options
  • Save kreedz/4c6b8a5f751834e765fce27c9481c733 to your computer and use it in GitHub Desktop.
Save kreedz/4c6b8a5f751834e765fce27c9481c733 to your computer and use it in GitHub Desktop.
Function to get an angle between the clock's arrows
def get_angle_between_clock_arrows(h, m):
return abs(360/60*m - 360/12*(h - h/12*12))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment