Transform.to2dComponents

Converts a gsk.transform.Transform to 2D transformation factors.

To recreate an equivalent transform from the factors returned by this function, use

gsk_transform_skew ( gsk_transform_scale ( gsk_transform_rotate ( gsk_transform_translate (NULL, &GRAPHENE_POINT_T (dx, dy)), angle), scale_x, scale_y), skew_x, skew_y)

self must be a 2D transformation. If you are not sure, use

gsk.transform.Transform.getCategory >= gsk.types.TransformCategory._2d

to check.

class Transform
void
to2dComponents
(
out float outSkewX
,
out float outSkewY
,
out float outScaleX
,
out float outScaleY
,
out float outAngle
,
out float outDx
,
out float outDy
)

Parameters

outSkewX float

return location for the skew factor in the x direction

outSkewY float

return location for the skew factor in the y direction

outScaleX float

return location for the scale factor in the x direction

outScaleY float

return location for the scale factor in the y direction

outAngle float

return location for the rotation angle

outDx float

return location for the translation in the x direction

outDy float

return location for the translation in the y direction