Last active
January 8, 2019 03:44
-
-
Save pete-murphy/e078dcc07085d5572c7f8834ff0d56cf to your computer and use it in GitHub Desktop.
Clock angles
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
| const getAngleBetweenHands = (hour, min) => | |
| 180 - Math.abs(Math.abs(((hour % 12) + min / 60) * 30 - min * 6) - 180) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment