Practice: Using non-square matrices to do a projection

1. Shadow projection

Shadows are an example of a transformation that reduces the number of dimensions. For example, 3D objects in the world cast shadows on surfaces that are 2D.

The sun is sufficiently far away that effectively all of its rays come in parallel to each other. We can describe their direction with the unit vectors^\hat{s}.

We can describe the 3D coordinates of points on objects in our space with the vector rr. Objects will cast a shadow on the ground at the point r′ r' along the path that light would have taken if it hadn't been blocked at rr, that is, r′=r+λs^ r' = r + \lambda \hat{s}.

The ground is at r3′=0 r'_3 = 0; by using r′⋅e^3=0 r' \cdot \hat{e}_3 = 0, we can derive the expression, r⋅e^3+λs3=0 r \cdot \hat{e}_3 + \lambda s_3 = 0 , (where s3=s^⋅e^3s_3 = \hat{s} \cdot \hat{e}_3​).

Rearrange this expression for λ \lambda and substitute it back into the expression for r′r' in order to get r′r' in terms of rr.

From the lecture video, we know that the projection and the dot product are the same things, which result in dimension reduction: e.g., 3D -> 2D as in the current case. The first two problems are just pure linear algebra to express the formula in different forms.

(2)r3′=0 (2) r_3^′=0

The subscript refers to the dimension, the third dimension in this case, which is the vertical line. For r', there is no third dimension since it is 2D and thus it equals zero.

r' is perpendicular to the vertical line and thus the dot product of the two vectors is zero.

is the projection of onto which is s3s_3

From (1), if we dot product both sides by , we get:

Since we know, :

Or

Finally, from (4), we get (5)

If we rearrange (5) in terms of λ

Plugging it into (1), we get:

Which is the answer for #1

If we apply Einstein's convention on (6):

r3r_3 is the projection of r to :

(8)ri′=ri−sir3/s3 (8) r_i^′=r_i −s_i r_3/s_3

From (7), if we take rr as the common term:

Similarly, from (8), we get:

(8−1)ri′=(Iij−siI3j/s3)rj (8−1) r_i^′=(I_ij − s_i I_{3j}/s_3 ) r_j

Last updated