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.
We can consider an example for looking at shadows using linear algebra.
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^.
We can describe the 3D coordinates of points on objects in our space with the vector r. Objects will cast a shadow on the ground at the point r′ along the path that light would have taken if it hadn't been blocked at r, that is, r′=r+λs^.
The ground is at r3′​=0; by using r′⋅e^3​=0, we can derive the expression, r⋅e^3​+λs3​=0, (where s3​=s^⋅e^3​​).
Rearrange this expression for λ and substitute it back into the expression for r′ in order to get r′ in terms of r.
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
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 s3​
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):
r3​ is the projection of r to :
(8)ri′​=ri​−si​r3​/s3​
From (7), if we take r as the common term:
Similarly, from (8), we get:
(8−1)ri′​=(Ii​j−si​I3j​/s3​)rj​
Last updated