linearly v0.32.0 • Docs
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
linearly v0.32.0 • Docs
linearly v0.32.0 / vec2 / rotate
rotate(
a
,deg
,origin
):vec2
Rotate a 2D vector
• a: vec2
• deg: number
• origin: vec2
= zero