Scaling Transformation

The graph might not print the expected figure. That is because the order of points matter but the final answer should be correct.

To solve: clear points, add required points, update fixed point, update scale factor and click solve.

Points (P):

x: {points_str_x}
y: {points_str_y}

 

Fixed Points

 

Scale Factor

 

Solution

P' = Pf + S * (P - Pf)

P - Pf:

x: {to_matrix(points_after_fixed[0])}
y: {to_matrix(points_after_fixed[1])}

S * (P - Pf):

x: {to_matrix(scaled_points[0])}
y: {to_matrix(scaled_points[1])}

P' = Pf + S * (P - Pf)

P':

x: {to_matrix(scaled_points_after_fixed[0])}
Y: {to_matrix(scaled_points_after_fixed[1])}