initFrom2d

fun initFrom2d(xx: Double, yx: Double, xy: Double, yy: Double, x0: Double, y0: Double): 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