Transform.to2d

Converts a GskTransform to a 2D transformation matrix.

@self must be a 2D transformation. If you are not sure, use gsk_transform_get_category() >= %GSK_TRANSFORM_CATEGORY_2D to check.

The returned values have the following layout:

| xx yx |   |  a  b  0 |
| xy yy | = |  c  d  0 |
| dx dy |   | tx ty  1 |

This function can be used to convert between a GskTransform and a matrix type from other 2D drawing libraries, in particular Cairo.

class Transform
void
to2d
(
out float outXx
,
out float outYx
,
out float outXy
,
out float outYy
,
out float outDx
,
out float outDy
)

Parameters

outXx float

return location for the xx member

outYx float

return location for the yx member

outXy float

return location for the xy member

outYy float

return location for the yy member

outDx float

return location for the x0 member

outDy float

return location for the y0 member

Meta