Matrix.to2d

Converts a #graphene_matrix_t to an affine transformation matrix, if the given matrix is compatible.

The returned values have the following 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 a #graphene_matrix_t and an affine matrix type from other libraries.

class Matrix
bool
to2d
(
out double xx
,
out double yx
,
out double xy
,
out double yy
,
out double x0
,
out double y0
)

Parameters

xx double

return location for the xx member

yx double

return location for the yx member

xy double

return location for the xy member

yy double

return location for the yy member

x0 double

return location for the x0 member

y0 double

return location for the y0 member

Return Value

Type: bool

true if the matrix is compatible with an affine transformation matrix

Meta