The three points P, Q and R from T1:
![[Graphics:Images/index_gr_1.gif]](Images/index_gr_1.gif)
I'll use little cubes to represent these points.
![[Graphics:Images/index_gr_2.gif]](Images/index_gr_2.gif)
![[Graphics:Images/index_gr_3.gif]](Images/index_gr_3.gif)
You'll recall the parameterization of a plane from class. This can be quite handy for representing pieces of a plane. For example, we can show the parallelogram generated by the vectors PQ and PR, anchored at P:
![[Graphics:Images/index_gr_6.gif]](Images/index_gr_6.gif)
![[Graphics:Images/index_gr_7.gif]](Images/index_gr_7.gif)
![[Graphics:Images/index_gr_8.gif]](Images/index_gr_8.gif)
(You might recall that I asked you to find a way to generate just the triangle. You do that yet?)
I want a disk centered at P in the plane containing the points. To help with this I'll first find a pair of orthogonal unit vectors in the plane. Here's are some utility functions, whose utility should be clear:
![[Graphics:Images/index_gr_11.gif]](Images/index_gr_11.gif)
![[Graphics:Images/index_gr_13.gif]](Images/index_gr_13.gif)
Given two nonparallel vectors and
, you can easily show that the vector
is orthogonal to . This means that we have the following two orthogonal unit vectors to play with, using PQ and PR in place of
and
:
![[Graphics:Images/index_gr_20.gif]](Images/index_gr_20.gif)
The magnitudes of the vectors PQ and PR are
![[Graphics:Images/index_gr_21.gif]](Images/index_gr_21.gif)
so a disk with radius 5 will show things nicely:
![[Graphics:Images/index_gr_23.gif]](Images/index_gr_23.gif)
![[Graphics:Images/index_gr_24.gif]](Images/index_gr_24.gif)
Keep playing. The cross product can be useful to get us out of the plane of the triangle.
![[Graphics:Images/index_gr_27.gif]](Images/index_gr_27.gif)
![[Graphics:Images/index_gr_28.gif]](Images/index_gr_28.gif)
![[Graphics:Images/index_gr_29.gif]](Images/index_gr_29.gif)
Okay, enough of that. (Unless you can think of something you'd like to see...)
Here's a picture that corresponds to the extra-credit problem on T1. We want to rotate the point R about the line
, through an angle of
. The trick is to use some convenient orthogonal unit vectors. But we already have them, because
is a unit vector along PQ,
is in the plane of PQR and is perpendicular to
, and
is a unit vector perpendicular to both
and
. From what we once discussed in class, the point should be
,
where is the distance from R to
and S is the point on
nearest to R, namely,
.
![[Graphics:Images/index_gr_46.gif]](Images/index_gr_46.gif)
![[Graphics:Images/index_gr_47.gif]](Images/index_gr_47.gif)
Let's have R run circles around S.
![[Graphics:Images/index_gr_50.gif]](Images/index_gr_50.gif)
![[Graphics:Images/index_gr_51.gif]](Images/index_gr_51.gif)
The answer to the T1 problem is as follows.
![[Graphics:Images/index_gr_54.gif]](Images/index_gr_54.gif)
Refer to our course web page to see some nice "Live3D" versions of these figures.