linearly v0.32.0Docs


linearly v0.32.0 / mat4 / fromRotation

Function: fromRotation()

fromRotation(deg, axis): mat4 | null

Creates a matrix from a given angle around a given axis Creates a matrix from a given angle.

Parameters

deg: number

The angle to rotate the matrix by, in degrees

axis: vec3

The axis to rotate around

Returns

mat4 | null

Shorthands

Defined in

src/mat4.ts:610open in new window