initFrom2d
fun initFrom2d(xx: <Error class: unknown class>, yx: <Error class: unknown class>, xy: <Error class: unknown class>, yy: <Error class: unknown class>, x0: <Error class: unknown class>, y0: <Error class: unknown class>): Matrix
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.
Return
the initialized matrix
Since
1.0
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