P1 = {{x1, y1}, {x2, y2}, {x3, y3}, {x4, y4}}
P2 = {{u1, v1}, {u2, v2}, {u3, v3}, {u4, v4}}
I need to find a way to transform coordinates of points inside P1 to the corresponding coordinates inside P2. In pseudo-code:
for each point (x, y) in P1 do
(u, v) = transform(x, y)
end for
The point (u, v) is the point inside P2 that corresponds to the point (x, y) inside P1.
Does anyone know how to do this?