linearly v0.32.0Docs


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

Returns

mat2d

Shorthands

Defined in

src/mat2d.ts:300open in new window