Hi all,
I have a problem where I have 1..n icons that I would like to layout in a circular pattern. Starting at an origin of (120, 160) I'm trying to figure out how to iterate over the collection of items and assign them a new position offset from the origin. Each of these items is a square of 48px and they cannot overlap.
How in the world do I do it? I know I'll be needing to use my trig on this, but it's been so long I forgot most of it :(
Thanks.
I have a problem where I have 1..n icons that I would like to layout in a circular pattern. Starting at an origin of (120, 160) I'm trying to figure out how to iterate over the collection of items and assign them a new position offset from the origin. Each of these items is a square of 48px and they cannot overlap.
How in the world do I do it? I know I'll be needing to use my trig on this, but it's been so long I forgot most of it :(
Thanks.
Comment