The Two-point Warp (Shift, Scale and Rotate)

The two-point warp defines a translation, a scale factor, and a rotation. The shift is equal to the shift in the location of the first point, the scale factor is equal to the ratio of the distance between the warped points and the original points, and the rotation angle is equal to the difference in the direction of the two lines formed by joining the points.