linearly v0.32.0Docs


linearly v0.32.0 / vec2 / rotate

Function: rotate()

rotate(a, deg, origin): vec2

Rotate a 2D vector

Parameters

a: vec2

deg: number

origin: vec2 = zero

Returns

vec2

Defined in

src/vec2.ts:569open in new window