views:

241

answers:

4

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
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
+3  A: 

double[3][3]

ima
actually I like this answer. Why link to some library when all that is needed is one matrix multiplication.
DanJ
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
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