linearly v0.32.0 • Docs
linearly v0.32.0 / mat2 / fromRotScale
Function: fromRotScale()
fromRotScale(
r
,s
):number
[]
Creates a matrix from given rotation, and scaling. The order of the transformations is rotation, and scaling.
Parameters
• r: null
| number
= null
Rotation angle in degrees
• s: null
| vec2
= null
Scaling vector
Returns
number
[]
The matrix that represents the transformation