Matrix.initFrom2d

graphene.matrix.Matrix initFrom2d(double xx, double yx, double xy, double yy, double x0, double y0)

Initializes a #graphene_matrix_t from the values of an affine transformation matrix.

The arguments map to the following matrix layout:

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

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

Parameters

xxthe xx member
yxthe yx member
xythe xy member
yythe yy member
x0the x0 member
y0the y0 member

Returns

the initialized matrix