Looking for a very simple function. What this function will need to do (cocos2d):
* Add a sprite, the shape of a circle, named [login to view URL], to the scene, at a position that I can later adjust. The rest of this function must not be dependent on a single dimension of [login to view URL] (example: I want to be able to use this for [login to view URL] if the size 50x50 or 100x100 or 84x84). For simplicity, there needs to be a dot/triangle/something at the top of the circle (think of a wedding ring from the profile view, with the band as the circle, and the diamond as the "dot/triangle/something" at the top of the circle. I'll include a sample image)
* I'll need two x,y CGpoints from the sprite: the center of the sprite, the point on the circle where the dot/triangle/object is
* Based on the user's touch, using bound's checking to determine the closest point from the user's actual touch on the screen to the edge of the circle, [login to view URL] should rotate ([login to view URL]'s center x,y CGpoint being the anchor) so that the dot/triangle/object is that closest point.
* I want the rotation to only start if the user's touch begins within a relative pixel distance from the dot/triangle/object (touchesBegan{} isn't successful if the user's touch isn't close to the dot/triangle/object, touchesMoved{} is only successful if touchesBegan{} is successful, touchesEnded{} stops rotation)
* after the touch is ended, I'll need to be able to reference the new two points: [login to view URL]'s center (unchanged) and the new location of the dot/triangle/object (wherever the user rotated it)
## Deliverables
my sample image was created with paint in windows, please create a new [login to view URL] image with transparent background. The image basically shows a before/after scenario.