linearly v0.32.0Docs


linearly v0.32.0 / mat2d / fromTranslation

Function: fromTranslation()

fromTranslation(v): mat2d

Creates a matrix from a vector translation

Parameters

v: number | vec2

Returns

mat2d

Shorthands

Defined in

src/mat2d.ts:337open in new window