Vector projection. The vector projection of a vector on another vector is the orthogonal projection of the first vector (here, A) onto a straight line parallel to the other vector (here, B). In this project, the vector A' is the projection of the vector A on the vector B. It's really useful, especially for raycasting, and the math are pretty simple.