Howto calculate an Affine-Transformation for two transformed points?
I have a problem which challenges me a bit too much ;)
Basically I need exactly the opposite of what the AffineTransform class provides. Instead of transforming two points with a given transformation I would need to calculate the AffineTransform by comparing the result of a transformation.
I have two points (p1, p2) which located right below each other, e.g. p1(x=10, y=10) p2(x=10, y=40) and now I would need the AffineTransformation which would transform those two points to some other coordinates e.g.(x=10, y=20), (x=90, y=298).
Any idea howto do this?