Add possibility to define a transformation matrix

Hi Stephan,

I needed it and I think it might be useful to others too ...

Cheers,
Steffi