An object has to be rotated about an axis passing through the points (1,0 ,1), (1,3,1) . What will be the resulting rotation matrix?
Solution: The axis is parallel to y axis. All that you need to do is to translate the axis so that it passes through the origin, apply rotation about y axis and then translate the axis back to the original position. The sequence of matrix transformations is given by