The relationships between relative rotations. {u}is the global coordinate frame which is arbitrarily placed. {Ai} and {Bi} are the coordinate frames attached to the ith domain in the template and the target, respectively. Our goal is to calculate RBi,Bj the relative rotation between domains in the target, by using the rotations Ru,Ai, Ru,Aj, RAi,Bi, and RAj,Bj. One can obtain Ru,Ai and Ru,Aj from the structural details of the template conformation. One also can calculate RAi,Bi and RAj,Bj by converting the relative rotations HAi,Bi and HAj,Bj which are described in the global frame {u} into the relative rotations with respect to {Ai}local frame.