lol, I feel dumb now. thanks. I am able to find coordinates now!
However, now I'm running into trouble when trying to draw things in a ring.
For a HUD I'm working on for a blizzABS demo project, I'm adding circles around the bottom left corner of a main circle. I want them to be evenly divided in this area. So I wrote a little function using the help you've all given me, here it is.
def circle_points(startAngle,endAngle,radius,steps)
@startAngle = startAngle
@endAngle = endAngle
@radius = radius
@steps = steps
@currentAngle = @startAngle
for i in 0..steps
x = @radius * Math.cos(@currentAngle)
y = @radius * Math.sin(@currentAngle)
print("x:"+ x.to_s + ", y:" + y.to_s) #replace with draw_icon function when coded
@currentAngle += ((@startAngle - @endAngle) * 1) / @steps
end
end
Now I've graphed the results out in another program, and for some reason when I have it start with an angle of 90 and and end at nintey, it goes 180 degrees. Anyone know what I can do to draw around sections of a circle? I don't know where my math error is coming in x.x