This React Native application allows you to view the angles between the hour and minute hands on a clock. It was built using test-driven development, and it serves minimal utility other than acting as a base for forensic analysis.
$ git clone https://github.com/agm1984/rn-clock-angle.git
$ cd rn-clock-angle
$ npm install
$ npm run android
This repo uses Jest
verbose: true
mode. See the package.json file to disable it.
$ npm test
Latest:
90.63% coverage
$ npm test -- --coverage
rad = angle * Math.PI / 180
transformX(Math.cos(angle) * dx - Math.sin(angle) * dy)
transformY(Math.sin(angle) * dx + Math.cos(angle) * dy)
rotate(angle+"deg")
((m * 6) - ((h * 30) + (m * 0.5)))
(360 - ((m * 6) - ((h * 30) + (m * 0.5))))
- Analog Clock https://enlight.nyc/clock
- Clock Angle https://sites.google.com/site/mymathclassroom/geometry/how-to-solve-clock-angle-problems-geometrically
- Clock Angle https://www.glassdoor.com.au/Interview/what-is-angle-between-hour-hand-and-minute-hand-in-clock-at-4-20-what-is-biggest-conflict-management-you-have-handled-in-QTN_497599.htm
Submit any questions as issues on GitHub: https://github.com/agm1984/rn-clock-angle/issues