Transform.to2d

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

Converts a [gsk.transform.Transform] to a 2D transformation matrix.

self must be a 2D transformation. If you are not sure, use [gsk.transform.Transform.getCategory] >= [gsk.types.TransformCategory._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 [gsk.transform.Transform] and a matrix type from other 2D drawing libraries, in particular Cairo.

Parameters

outXxreturn location for the xx member
outYxreturn location for the yx member
outXyreturn location for the xy member
outYyreturn location for the yy member
outDxreturn location for the x0 member
outDyreturn location for the y0 member