Simple Analytic Geom Question
lewis at bway.net
Sat Nov 27 13:49:49 PST 2004
On Nov 23, 2004, at 2:06 PM, Ted Hill wrote:
> This is a 2D problem in the x, y plane.
> My inputs are:
> circle radius (same for both circles A & B)
> center point for circle A
> center point for circle B
> What I want to find are:
> The corner points of the rectangle that satisfies the following:
> The four points lie on the circles (2 on each circle, at opposite ends
> of a diameter) such that
> 2 sides of the rectangle are parallel to the line that joins the
> center points of the circles.
> The other two sides of the rectangle are diameters of the circles.
This seems to be pretty simple. First assume that one circle is
centered at the origin. Let (x1, y1) be one of the desired points on
this circle, of radius r, say. Then the line from (0,0) to (x1,y1) is
perpendicular to the line from (0,0) to the center of the other circle,
say (cx2, cy2). Let theta = angle formed by this line (0,0) to
(cx2,cy2) and x-axis. Then the answer is x1 = +- r sin(theta), y1 = -+
r cos(theta). Note that the radius of the second circle is irrelevant.
Then translate the answer if the first circle moves off the origin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 1909 bytes
Desc: not available
Url : http://compgeom.poly.edu/pipermail/compgeom-announce/attachments/20041127/563448b3/attachment.bin
More information about the Compgeom-announce