Original Post
I need to find the center and radius of a 3D cartesian sphere that intersects another sphere at right angles. Illustration:
[attachment=5946:Circles.png]
Knowns:
* Center of the blue sphere, which is centered at the origin in fact (0,0,0)
* Radius of the blue sphere
* Axis along which the center of the red sphere lies (also intersection point of the axis with the blue sphere)
* Distance between the two red dots
Basically the blue sphere is Earth and I need to generate a cartesian sphere representing a circle on the surface of the Earth. I've done this already except that my circles are centered on the Earth's surface (red dot) which means they don't intersect the ground at right angles like the red circle roughly does. This causes certain math routines to fail. So I need to find the center/radius of the red circle drawn in the illustration.
I know that, on a 2D picture, if you draw tangents of the blue circle where the red circle intersects it, the intersection of those two tangents marks the center of the red circle. Still don't know how to correlate this with the above 3D inputs to find what I need.
Can anyone help?
[attachment=5946:Circles.png]
Knowns:
* Center of the blue sphere, which is centered at the origin in fact (0,0,0)
* Radius of the blue sphere
* Axis along which the center of the red sphere lies (also intersection point of the axis with the blue sphere)
* Distance between the two red dots
Basically the blue sphere is Earth and I need to generate a cartesian sphere representing a circle on the surface of the Earth. I've done this already except that my circles are centered on the Earth's surface (red dot) which means they don't intersect the ground at right angles like the red circle roughly does. This causes certain math routines to fail. So I need to find the center/radius of the red circle drawn in the illustration.
I know that, on a 2D picture, if you draw tangents of the blue circle where the red circle intersects it, the intersection of those two tangents marks the center of the red circle. Still don't know how to correlate this with the above 3D inputs to find what I need.
Can anyone help?