Created
March 31, 2016 18:52
-
-
Save kreedz/4c6b8a5f751834e765fce27c9481c733 to your computer and use it in GitHub Desktop.
Function to get an angle between the clock's arrows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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