linearly v0.32.0Docs


linearly v0.32.0 / mat2 / rotate

Function: rotate()

rotate(a, deg): mat2

Rotates a mat2 by the given angle

Parameters

a: mat2

the matrix to rotate

deg: number

the angle to rotate the matrix by, in degrees

Returns

mat2

Defined in

src/mat2.ts:185open in new window