linearly v0.32.0Docs


linearly v0.32.0 / mat2d / fromScaling

Function: fromScaling()

fromScaling(v, origin?): mat2d

Creates a matrix from a vector scaling

Parameters

v: number | vec2

origin?: vec2

Returns

mat2d

Shorthands

Defined in

src/mat2d.ts:309open in new window