linearly v0.32.0Docs


linearly v0.32.0 / mat2d / rotate

Function: rotate()

rotate(m, deg, origin?): mat2d

Rotates a mat2d by the given angle

Parameters

m: mat2d

deg: number

origin?: vec2

Returns

mat2d

Defined in

src/mat2d.ts:202open in new window