Translate and stretch horizontally and vertically

Translate or stretch given triangle ABC. Investigate translation T(h,v), where h is the horizontal displacement and v the vertical displacement, by moving the little green square. The triangle will move with the same amount as the little square. To investigate horizontal and vertical stretching S(h,v), where the x-coordinates of the triangle are multiplied with factor h and the y-coordinates are multiplied with factor v. Move around point S. The red rectangle is the transformation of the unit square S(1,1). It reflects the deformation of the plane by the transformation.