I would like to learn/understand transformation matrices.
Therefore I would like to ask how to construct rotation matrix if I have an object and its axis and target axis. As image below.
What I would like to do is:
Declare rotation matrix:
and then assign each value individually:
t.M00 = ...; t.M01 = ...;
But I do not know the math behind rotation matrix