next up previous
Next: Given R find F Up: Reflections in a Cylinder Previous: Introduction


Given F find R

Since the point R is on the cylinder, it has coordinates (c, s, h) where c2 + s2 = 1. R also lies on the line through E and F and so, for some t, R = E + t (F-E), which gives

(c,s,h) = (r + t ( f- r), t u, e + t v) (1)

Thus 1 = (c2 + s2) = (r + t (f - r))2 + (t u)2. Expanding to powers of t, we get

(u2 + (f-r)2) t2 + 2 r (f-r) t + r2 - 1 = 0 (2)

We wish to find the smallest (if any) of the roots of (2). Using the quadratic equation, we find

\begin{displaymath}t = \frac {r (r - f) - \sqrt{(r-f)^2 - u^2(r^2-1)}}
{u^2 + (f-r)^2}. \end{displaymath} (3)

Substitution of this value of t into (1) gives the coordinates of R.

Steve Tanimoto
2000-02-04