Professional Documents
Culture Documents
Workshop: Vectors and Transformations: Section 1: Points and Vectors. Your Answers Should Only Involve Point and Vector
Workshop: Vectors and Transformations: Section 1: Points and Vectors. Your Answers Should Only Involve Point and Vector
Section 1: Points and Vectors. Your answers should only involve point and vector
operations (e.g., addition, subtraction, magnitude, dot and cross products) and NO
1. Ray reflection: when a ray of light from light source q hits a mirror at point p, in
what direction does it reflect off? Assume the normal direction of the mirror is n (a
unit vector).
n q
1. What is the (signed) distance from q to the mirror plane? How does the
q lies above the plane (i.e., in the half-space that n points into) if h is positive.
n q
q'
2. Points and vectors: compute the intersection between a line segment and a triangle in 3D.
Your answers should be presented using point and vector operations (e.g., addition,
subtraction, magnitude, dot and cross products) and no x,y,z coordinates. [6 + 2 pts]
Consider a line segment with end points p, q, and a triangle with vertices r,s,t, see below:
1. Without computing the intersection point, write down the test that checks whether the line
segment intersects with the plane on which the triangle lies (Hint: think about what side of
2. Assuming the line segment passes your test, compute the location of that intersection point.
[3 pts]
3. [Extra credit] How would you test if the intersection point computed above lies inside the
triangle? [2 pts]
0.4
0.3
0.2
0.1
0.0
0.0 0.2 0.4 0.6 0.8 1.0
1. The fractal is made up of four copies of itself, each having one-third size of the fractal. I
have circled one of these copies in the picture above. Circle the other three copies, and
write the transformations that transform the fractal to each of these four copies. [4 pts]
2. The fractal can also be decomposed into two down-scaled copies of itself. Circle these two
copies in the picture below [1 pt], and [Extra credit] write the transformations that
transform the fractal to each of these two copies. [2 pts]
0.4
0.3
0.2
0.1
0.0
0.0 0.2 0.4 0.6 0.8 1.0