linearly v0.32.0 • Docs
linearly v0.32.0 / mat4 / rotation
Function: rotation()
rotation(
deg
,axis
):mat4
|null
Alias for fromRotation
Parameters
• deg: number
The angle to rotate the matrix by, in degrees
• axis: vec3
The axis to rotate around
Returns
mat4
| null