I'm trying to make inkscape a simple level editor for my team-mates but I'm kinda stuck on the transform attribute.

Basically we only use circles to position items, and I want to use the sodipodi:- rx ry cx cy properties. As I move them around they do not change, only the Matrix does ( I guess thats kinda logical).

But I need to get the position from cx cy and the radius from rx and ry. I have no idea how to apply the matrix to it.

Yes I did read the official site on matrices.

I know that for transformtion it's

Code: Select all

`[1][0][tx]`

[0][1][ty]

[0][0][1]

scaling is

Code: Select all

`[sx][0][0]`

[0][sy][0]

[0][0][1]

But these are 2 separate matrices.

And the "matrix" attribute is a combination of the translation, scaling and rotation right?

I'm really confused at how to find the individual scaling and translation in combination with the sodipodi attributes.