and length . You pick up the left side and fold it to the right side, like so:
You have a rectangular piece of paper of width
Which function describes the new position of a point on the paper after the fold?
f(x, y, W, L) = \left\{ \begin{array}{rl} (W-x,y) &\mbox{ if \$x<\frac{W}{2}\$} \\ (x, y) &\mbox{ otherwise} \end{array} \right.
f(x, y, W, L) = \left\{ \begin{array}{rl} (W^{2}-x,y+L-W) &\mbox{ if \$x>\frac{W}{2}\$} \\ (x, y) &\mbox{ otherwise} \end{array} \right.
Details and assumptions:
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
First of all, we know that all y properties will be the same after the fold. How will x change?
We want to mirror our left side over to the right with the following transformation:
f ( x , y , W , L ) = ( W − x , y )
In order for this function to be applicable to all points on the paper, we need to add a part that says the transformation is restricted only to the left side:
f(x, y, W, L) = \left\{ \begin{array}{rl} (W-x,y) &\mbox{ if \$x<\frac{W}{2}\$} \\ (x, y) &\mbox{ otherwise} \end{array} \right.