Matrix.to2d

bool to2d(out double xx, out double yx, out double xy, out double yy, out double x0, out double y0)

Converts a #graphene_matrix_t to an affine transformation matrix, if the given matrix is compatible.

The returned values have the following layout:

⎛ xx  yx ⎞   ⎛  a   b  0 ⎞
 ⎜ xy  yy ⎟ = ⎜  c   d  0 ⎟
 ⎝ x0  y0 ⎠   ⎝ tx  ty  1 ⎠

This function can be used to convert between a #graphene_matrix_t and an affine matrix type from other libraries.

Parameters

xxreturn location for the xx member
yxreturn location for the yx member
xyreturn location for the xy member
yyreturn location for the yy member
x0return location for the x0 member
y0return location for the y0 member

Returns

true if the matrix is compatible with an affine

transformation matrix