SImple, enough. If you have, say, 4 nodes, the first is at 45, the second at 90+45, the third at 180+45, and the fourth at 360-45. Now, to find the coordinates, simple multiply each angle by (pi / 180) to convert to radians, and use this formula:
Where radianMeasure is the degree angle converted to radians, p and center are POINTAPI, radius is, of course, the distance from the center to each node.Code:p.x = center.x + radius * cos(radianMeasure)
p.y = center .y + radius * sin(radianMeasure)
I chose to start at 45, because you will then get a nice looking X shape. You should start the count at (angleBetween / 2).
Z.
