Calculate Width of Circle?

Miscellaneous Forums/General Discussion/Calculate Width of Circle?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi does anyone know how to calculate the Width of circle at different vertical positions. So imagine I wanted to animate a scanning horizontal line down from the top of the circle to the bottom of the circle. At the top the line would not be very wide and in the middle it would be 2*radius, and it would be small again by the bottom.

So how to work the width out for a given Y coord? Any ideas? Thx :-)