This matrix equation relates the scalar components of a in the n basis (u, v, and w) with those in the e basis (p, q, and r). Each matrix element c jk is the direction cosine relating n j to e k. The term direction cosine refers to the cosine of the angle between two unit vectors, which is also equal to their dot product. Therefore,