Calculating a rotation matrix from one vector to another
Aligning one plane to another is a common task in 3D modeling. The easiest way to align planes is by using their normal vectors – we need to rotate the original plane so that its normal vector coincides with the normal vector of the plane for which the alignment is performed. Therefore, the task of rotating one plane to another can be reduced to the problem of rotating the normal vector of the first place to the normal vector of the second plane.
Calculating a rotation matrix from one vector to anotherRead More »