Skip to main content

m3_rm_compose_transform

m3_rm_compose_transform(result, tX, tY, sX, sY, cx, cy, angle)

Composes row-major transform matrix, row-major format is used in OpenGL

Kind: global function

ParamTypeDescription
resultArray.<number> | Float32Array
tXnumbertranslation X offset
tYnumbertranslation Y offset
sXnumberscale in X axis
sYnumberscale in Y axis
cxnumbercenter of rotation X
cynumbercenter of rotation Y
anglenumberrotation angle