Suppose I have two pentagons, A
and B
with vertices
(x1, y1), (x2, y2), ... (x5, y5) for A
and
(x'1, y'1), ... (x'5,y'5) for B
.
I know the correspondence of the vertices:
(x1, y1) <==> (x'1, y'1)
Similarly all the vertices.
I need a procedure to transform all the points inside A
to B
.
I found a similar problem for quadrilaterals in Transform quadrilateral into a rectangle?.
In my case, they are not quadrilateral, they are pentagons. I would actually like a solution that works for an arbitrary number of vertices (pentagon, hexagon, etc.).