Registered Member
|
I have a transformation that I'm using that works great. I also have a need to use only the rotation portion, inverted. Currently I'm doing this (which does what I want):
I tried assigning the m_transform.rotation() to an AngleAxisd and then inverting and multiplying that by the result. Doesn't work due to miss match of the Matrix sizes. Is there a way to do this better/faster? |
Moderator
|
simply use:
m_transform.linear().inverse() |
Registered Member
|
Wouldn't ".linear()" return the linear portion of the matrix and then perform the inverse operation on that? Rather than zeroing out the linear (translation) portion and then inverting the result? Edit: ok I figured it out:
Thanks! |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]