Package: graphene
Function graphene:matrix-to-2d
Lambda Listgraphene:matrix-to-2d (matrix) SyntaxArgumentsReturn ValueThe list with the floating point values, or nil if matrix is not compatible with an affine transformation matrix. Details
Converts the matrix to an affine transformation matrix, if the given matrix
is compatible.
The returned values have the following layout: ⎛ 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 instance and an affine matrix type from other libraries. | See also |
#2024-12-30