This is a general question but can someone provide a worked example of a 3d transformation? Or a link that has a worked example of one? I've looked on the internet for a long time and couldn't find anything except explanations on how to do a transformation but no mathematical examples.
I am trying to transform an object from one location to another where initial (location 1) and final coordinates (location 2) are given. I know that you have to translate the object to the origin (which I'll call O for origin), rotate is in alignment with the origin, translate it to the new location and then rotate it to the final coordinates. I understand conceptually what's going on but not clear on the math.
So basically: t(O-->2).R(O-->2).R(1-->O).t(1-->O) = F (frame transformation)
I also know that the two rotation matrices can be calculated simply as R(1-2) so the equation becomes: t(O-->2).R(1-->2).t(1-->O)=F