to_affine
Description:
public void to_affine (out float out_scale_x, out float out_scale_y, out float out_dx, out float out_dy)
Converts a `GskTransform` to 2D affine transformation factors.
To recreate an equivalent transform from the factors returned by this function, use
gsk_transform_scale (gsk_transform_translate (NULL, &GRAPHENE_POINT_T (dx, dy)), sx, sy)
this must be a 2D affine transformation. If you are not sure, use
get_category >= gsk_transform_category_2d_affine
to check.
Parameters:
this |
a `GskTransform` |
out_scale_x |
return location for the scale factor in the x direction |
out_scale_y |
return location for the scale factor in the y direction |
out_dx |
return location for the translation in the x direction |
out_dy |
return location for the translation in the y direction |