circles

How can I generate images of circles, of varying sizes?

For the task I'm trying to accomplish, I need to generate many images, all consisting of a black circle border on a transparent background, but each a different size (going up in size from 3x3 to, say, 20x20). Preferably they would be GIFs or PNGs, as these support transparency. I started building a simple C# Console project for this, ...

Scaling and repositioning cirlces based on Resolution

Hi, We are building an application in Flex where we have to scale and reposition the circles based on the changed screen resolutions. Example: Current resolution: (800, 600) I draw a circle at position (410,290) with radius 10 Now If i change the resolution of screen to (1440, 960) then the circle should be drawn at the same place o...

Finding the smallest circle that encompasses other circles?

If a circle is defined by the X, Y of it's center and a Radius, then how can I find a Circle that encompasses a given number of circles? A single circle that is the smallest possible circle to completely contain 2 or more circles of any size and location. At first I tried just encompassing 2 circles by finding the midpoint of the center...

Finding all points common to two circles

In Python, how would one find all integer points common to two circles? For example, imagine a Venn diagram-like intersection of two (equally sized) circles, with center-points (x1,y1) and (x2,y2) and radii r1=r2. Additionally, we already know the two points of intersection of the circles are (xi1,yi1) and (xi2,yi2). How would one gene...

how to decide point is between two points on compass

Hi All Given any two points on compass (Start range and End Range) to form a range. Example from 270(Start range) degrees to 45(End range)degrees and given another point say 7 , how can I work out if that point is between Start and End range ? I'm trying to write some code to work out if the Wind (in the above point 3) is blowing from...