

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Q 1 = P 1 + t(P 2 P 1 ) (1) Q 2 = P 2 + t(P 3 P 2 ) (2) R = Q 1 + t(Q 2 Q 1 ) (3)
Now, substitute Q 1 , Q 2 in equation 3 by equations 1 and 2
R = P 1 + t(P 2 P 1 ) + t(P 2 + t(P 3 P 2 ) P 1 t(P 2 P 1 )) = P 1 + t(P 2 P 1 ) + t(P 2 P 1 ) + t^2 (P 3 P 2 P 2 + P 1 ) = P 1 + 2 t(P 2 P 1 ) + t^2 (P 3 2 P 2 + P 1 ) (4)
The outline of R is a parab ola as in g 1.
Lo oking on the x-axis, we will notice that cd = ab , and thus :
(xS umin ) (umax umin )
(x xmin ) (xmax xmin )
multiply by (umax umin ), and getting um in to the right hand side results in :
xS = umin +
(umax umin ) (xmax xmin )
(x xmin ) (6)
and similarly, we can derive yS , as :
yS = vmin +
(vmax vmin ) (ymax ymin )
(y ymin ) (7)
P
P (^) P
Q (^) Q
R
1
2
(^12)
3 Figure 1: Outline for solution
(x,y)
a
b
Source Rectangle
c
d
(x ,y ) S S
Destination Rectangle
Figure 2: Mapping question