I am asking for the coordinates of PointM & PointN. The problem is displayed as below figure.
Known:
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.