Hi there

As you can see I'm new into this field, and I don't know how to solve the following simple problem.

Attachment 8405

Let's say I wish to move an object from point A in point B. I know the x, y coordinates of A and B. How can I detect the rotation angle between A and B, using a matrix.

All I can do is to solve this problem is using Pythagoras theorem, but I need to understand how to do it using matrices.

thank you