Creates a transformation matrix table. These can also be created by hand; this is simply a convenience routine. Applies scaling first, then rotation, then translation.
| matrix = Utility.Matrix.Create(scaleX, scaleY, rotate, translateX, translateY) | |||
| Parameter | Type | Datatype | Description |
|---|---|---|---|
| rotate | parameter | number/nil | Rotation amount in radians. Defaults to 0. |
| scaleX | parameter | number/nil | Scaling along the X axis. Defaults to 1. |
| scaleY | parameter | number/nil | Scaling along the Y axis. Defaults to 1. |
| translateX | parameter | number/nil | Translation along the X axis. Defaults to 0. |
| translateY | parameter | number/nil | Translation along the Y axis. Defaults to 0. |
| matrix | result | table | Matrix table suitable for "transform" members. |