asking for PointM & PointN coordinates
I am asking for the coordinates of PointM & PointN. The problem is displayed as below figure.
Known:
- C1 is a circle, and C2 is also a circle.
- EC is the radius of C1 & C2.
- PointE (Ex,Ey), PointC (Cx, Cy), length of EC
Calculated:
PointF(Fx, Fy),
sEC (slope of line EC),
bEC (y-intercept of line EC),
fMN (slope of line MN)
bMN(y-intercept of line MN)
PointM(x,y) when PointE & PointC are in the horizontal position
PointN(x,y) when PointE & PointC are in the vertical position
I have tried many options to solve the PointM & PointN coordinates when they are in general position, but have not worked so far.
Can anyone help? Java/C/C++/C#/VB/Python/pseudocode is fine.
Many Thanks!
回答
Based on Paul,
http://paulbourke.net/geometry/circlesphere/
x3 = x2 +- h ( y1 - y0 ) / d
y3 = y2 -+ h ( x1 - x0 ) / d
Checked & it works.
THE END
二维码