polygon

Updated mathematics library including polygon and various trigonometry functions.

Comments, 365 Votes - submitted on 08/03/2014 view repo

App creates star polygons at random locations. A tap on the polygon calls a general-purpose triangulator, adds the triangles as physics bodies, and gives them a spin to simulate an explosion. When all the fragments have flown off the screen, a new star is created.

The triangulator code can easily be snipped for other purposes.

Comments, 183 Votes - submitted on 05/03/2014 view repo