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
xx | the xx member |
yx | the yx member |
xy | the xy member |
yy | the yy member |
x0 | the x0 member |
y0 | the y0 member |
Returns
the initialized matrix