Skip to content
Discussion options

You must be logged in to vote

Hi,

Our Matrix4<T> struct has build-in conversion operator AffineXf3<T>() const. So you can easily convert Matrix4f m into affine transformation by typing AffineXf3f(m).

rigidB2A is the transformation from B-object space to A-object space. If you know the transformations of A and B in some common space, e.g. in world space:

AffineXf3f xfA;
AffineXf3f xfB;

then xfA.inverse() will be the transformation from common space to A-object space and you can compute:

AffineXf3f rigidB2A = xfA.inverse() * xfB;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by czc98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants