linearly v0.32.0Docs


linearly v0.32.0 / mat2 / rotation

Function: rotation()

rotation(deg): mat2

Alias for fromRotation

Parameters

deg: number

The angle to rotate the matrix by, in degrees

Returns

mat2

Shorthands

Defined in

src/mat2.ts:236open in new window