makeScale

Creates a Matrix33 to scale by s. Returned matrix is:

`
| s 0 0 |
| 0 s 0 |
| 0 0 1 |
`
*

Return

Matrix33 with scale

Parameters

s

scale factor


fun makeScale(sx: Float, sy: Float): Matrix33

Creates a Matrix33 to scale by (sx, sy). Returned matrix is:

 `
| sx  0  0 |
|  0 sy  0 |
|  0  0  1 |
`
*

Return

Matrix33 with scale

Parameters

sx

horizontal scale factor

sy

vertical scale factor