linearly v0.32.0Docs


linearly v0.32.0 / mat2d / fromRotation

Function: fromRotation()

fromRotation(deg, origin?): mat2d

Creates a matrix from a given angle.

Parameters

deg: number

The angle to rotate the matrix by, in degrees

origin?: vec2

Returns

mat2d

Shorthands

Defined in

src/mat2d.ts:280open in new window