notice that the rotation matrix r is assembled by using the rotated basis vectors u1, v1, w1 as its rows, and these vectors are unit vectors. by definition, ra1 consists of a sequence of dot products between each of the three rows of r and vector a1. each of these dot products determines a scalar component of a in the direction of a rotated basis vector (see previous section).