linearly v0.32.0Docs


linearly v0.32.0 / mat2d / trs

Function: trs()

trs(t, r, s): mat2d

Alias for fromTRS

Parameters

t: null | vec2 = null

Translation vector

r: null | number = null

Rotation angle in degrees

s: null | number | vec2 = null

Scaling vector or a number

Returns

mat2d

The matrix that represents the transformation

Shorthands

Defined in

src/mat2d.ts:603open in new window