I by no means profess to be a genius when it comes to programming and my current problem has me stumped.
I have found this question Trying to derive a 2D transformation matrix using only the images that seems to at least partially answer my question but the image that should show the solution is no longer available :S
I'm working in C# and not using WPF as neither my input or output needs to be displayed graphically.
In my program I have 2 quadrilaterals, lets call them an input and an output quadrilateral.
The input quad has the co-ords of (2,1),(2,3),(4,4),(3,1) from bottom left clockwise.
The output quad can have any co-ords and will be again listed in order from bottom left clockwise.
Given these 8 co-ordinate pairs, is it possible to calculate a transformation matrix that I could apply to any single co-ordinate pair?
I'm not too hot on Matrices but I am willing to learn if pointed in the right direction.
Many Thanks
Josh