init_from_2d


Description:

[ Version ( since = "1.0" ) ]
public unowned Matrix? init_from_2d (double xx, double yx, double xy, double yy, double x_0, double y_0)

Initializes a Matrix 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 ⎠
sed to convert between an affine matrix type from other libraries and a Matrix.

Parameters:

this

a Matrix

xx

the xx member

yx

the yx member

xy

the xy member

yy

the yy member

x_0

the x0 member

y_0

the y0 member

Returns:

the initialized matrix