We have that R = (c,s,h) where
and
for some .
Introduce a new point Q which is the intersection of the cylinder
x2 + y2 = r2 with the line segment .
Then, refering to a top view,
the x and y coordinates of Q are
and
respectively. Also, in the Z coordinate, Q is
as far below R as E is above R. Thus, the Z coordinate of Q is
h-(e-h) = 2 h - e.
Thus,
Q = ( r ( 2 c2 - 1 ), 2 r c s, 2 h - e)
(6)
P is on the intersection of the z=0 plane and the line through R and Q. Thus,
P = R + t(Q-R)
(7)
has z coordinate 0. Thus,
h + t(2h-e-h) = 0 gives t = h/(e-h) which,
when substituted into (7) gives