Does anyone know of a graphing library for simple transformation of a point from one coordinate system to another coordinate system which is rotated by a angle and some point transformation and just for 2d? And any graphing tool for plotting and verifying the same visually?
A:
GDAL includes pretty much every graphic transform you could ask for, and while it is big and hence takes some time to get used to, it is a great framework to move forward with.
Shane MacLaughlin
2008-10-07 06:33:45
A:
This isn't a library, but it's a blog by someone who does this kind of thing:
http://polymathprogrammer.com/
It's got some good theory if you want to know the "behind the scenes".
Mark Ingram
2008-10-07 07:41:27
actually I like this answer. Why link to some library when all that is needed is one matrix multiplication.
DanJ
2008-10-07 15:10:29
I don't like that answer. It could have been a little bit more verbose than this. In essence you are right, and my answer is also one pointing to a library that contains simple classes to do this sort of affine transformations, but simply stating "double[3][3]" is a bit cryptic, in my opinion.
Dave Van den Eynde
2008-10-08 07:57:53
A:
The Angtigrain Geometry library contains code that can do this, and you can also go farther and use it for drawing as well, but you don't have to. You should look at the agg::trans_affine class in the agg_trans_affine.h file.
Dave
Dave Van den Eynde
2008-10-07 11:02:44