In 3-dimension (3-D) space, a non-zero vector can be denoted by
v=vxex+vyey+vzez,where
- ex=100, ey=010, and ez=001 are the unit vectors of the 3 axes, respectively.
- vx, vy, and vz are the components of v projected to the 3 axes.
For vector v, its direction cosine vector can be expressed as
cosαcosβcosγ=∥v∥2vx∥v∥2vy∥v∥2vz=∥v∥2v≜ev,where
- α, β, γ are the angles of vector v relative to the 3 axes, respectively.
- ev is the unit vector of v, i.e., ∥ev∥2=cos2α+cos2β+cos2γ=1.