to_2d
Description:
public void to_2d (out float out_xx, out float out_yx, out float out_xy, out float out_yy, out float out_dx, out float out_dy)
Converts a transform to a 2D transformation matrix.
this must be a 2D transformation. If you are not sure, use
get_category >= GSK_TRANSFORM_CATEGORY_2D
to check.
The returned values are a subset of the full 4x4 matrix that is computed by [method@Gsk.Transform.to_matrix] and 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.
Parameters:
this |
a 2D transform |
out_xx |
return location for the xx member |
out_yx |
return location for the yx member |
out_xy |
return location for the xy member |
out_yy |
return location for the yy member |
out_dx |
return location for the x0 member |
out_dy |
return location for the y0 member |