Matrix.initFrom2d

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

The arguments map to the following matrix layout:

|[<!-- language="plain" --> ⎛ 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.

class Matrix
initFrom2d
(
double xx
,
double yx
,
double xy
,
double yy
,
double x0
,
double y0
)

Parameters

xx double

the xx member

yx double

the yx member

xy double

the xy member

yy double

the yy member

x0 double

the x0 member

y0 double

the y0 member

Return Value

Type: Matrix

the initialized matrix

Meta