View Single Post
02-24-2011, 09:24 PM
#4
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

This would have been easier if you had asked me last year when I actually remembered trig. Basically what you need to do then is put the center of each image along a circle. If you don't know any trig this might be difficult.

First we need to see how far apart each image will be from eachother. To get that it would be dist=6.28/count radians. So if you have five images each one would be separated by 1.256 radians. My trig is too rusty to remember how to actually calculate the distance on the circle from that.

Once you have the x,y position of each image there isn't much from there. All you need to do to center them is move the image half its height and half its width so it is centered. The angle you will have to move it at will vary by where it is at on the circle but can be found as well. Once again I dont remember enough trig.

Thanked by:
dlcoding (02-25-2011)