Suppose I have 2D polygon image and a larger 2D rectangle image and that I have a collection of points for each that I want to align.
For Example the polygon has point collection:
[PA(a, b), PB(c, d), (PC(e, f)]
And the Rectangle has point collection:
[RA(g, h), RB(i, j), RC(k, l)]
Is there an algorithm I can use to pragmatically transform the Polygon such that the points will align to the points on the Rectangle, Scaling and Rotating such that the Polygon remains intact?
Please note: I'm using three points in the example; however, an algorithm with an arbitrary number of equal points is fine.
I by transform I mean: Scale and Rotate. The objective being that the polygon image is not "warped"
I think circumscribed does describe what I'm trying to accomplish; however, for all practical purposes the Rectangle will always be large enough to contain the polygon.