Readonly
byteProtected
maxProtected
typedApply the transform to the current matrix
The transform to apply
offset position
get the array
Optional
end: numberGet the global rotation angle
The current matrix rotation angle in radians
Obtain the inverse matrix of the current matrix
inverse matrix
Get a copy of the current transformation matrix
matrix
Reset the current matrix to identity matrix
pop a element
pop a matrix from the stack
push a matrix and indentiy it
push a matrix to the stack
resize the array
Rotates the current matrix by the specified angle.
The angle, in radians, to rotate the matrix by.
Multiplies the current matrix on the top of the stack by a scaling transformation.
The amount to scale the matrix horizontally.
Optional
y: numberThe amount to scale the matrix vertically. If not specified, x is used for both horizontal and vertical scaling.
Set the global position in world space
x coordinate or Vec2 object
Optional
y: numbery coordinate (ignored if first parameter is Vec2)
Set the global rotation angle
rotation angle in radians
Set the global scale
x scale or Vec2 object
Optional
y: numbery scale (ignored if first parameter is Vec2)
Protected
setSet the current transformation matrix
Convert the current matrix to a CSS transform string
CSS transform string representation of the matrix
Translates the current matrix by the specified x and y values.
The amount to translate horizontally.
Optional
y: numberThe amount to translate vertically.
length of the array