Another Quick Exercise
For my birthday, I decided to solve a display exercise in Swift that inevitably will be necessary in my personal Towne of Klock project. The problem is very simple:
Given a 2D cartesian plane (in this case a SpriteKit Scene in Swift) determine where the points for One O’Clock through Twelve O’Clock must be placed. Not a very original or difficult problem to solve, per say. However, I do so love playing with geometry!
If interested in my solution you can do one of the following…
- Read the Github Gist
- Download the playground (which I played with inserting inline markup to explain my process)
- Or you can read the full code below the screenshot…