This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Calculate the rotation matrix

Tags: None
(comma "," separated)
donaldk
Registered Member
Posts
1
Karma
0

Calculate the rotation matrix

Sat Feb 23, 2013 5:23 pm
If I want to rotate the standard coordinate system with axis {0,0,1} {0,1,0} {1,0,0} to another coordinate system with axis say vectors A, B ,C, how can I get the rotation matrix?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Calculate the rotation matrix

Sat Feb 23, 2013 7:17 pm
If A, B and C form an orthonormal basis, then your rotation matrix is simply formed by the basis vector A, B, C:

Matrix3f rot;
rot << A, B, C;

Here rot is the transformation from the local space (A,B,C) to world coordinates. To get he opposite rotation, simply take or construct the transpose of rot.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]