linearly v0.32.0Docs


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

Shorthands

Defined in

src/mat4.ts:648open in new window