linearly v0.32.0 • Docs
linearly v0.32.0 / mat2d / rotation
Function: rotation()
rotation(
deg
,origin
?):mat2d
Alias for fromRotation
Parameters
• deg: number
The angle to rotate the matrix by, in degrees
• origin?: vec2
linearly v0.32.0 • Docs
linearly v0.32.0 / mat2d / rotation
rotation(
deg
,origin
?):mat2d
Alias for fromRotation
• deg: number
The angle to rotate the matrix by, in degrees
• origin?: vec2