linearly v0.32.0Docs


linearly v0.32.0 / mat2 / fromRotation

Function: fromRotation()

fromRotation(deg): mat2

Creates a matrix from a given angle.

Parameters

deg: number

The angle to rotate the matrix by, in degrees

Returns

mat2

Shorthands

Defined in

src/mat2.ts:226open in new window