Rotation matrix

Hi,

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:

Transform t;

and then assign each value individually:

t.M00 = ...;
t.M01 = ...;

But I do not know the math behind rotation matrix

Hi @Petras_Vestartas,

The internet has a lot of information on this. You can also download the openNURBS source and study the ON_Xform class if this of any help.

– Dale

I just looked at openNurbs it is really nice that you share all that stuff…

Thank you a lot.