Appearance
aninest root / Vec2 / rotate
function rotate(v, angle): Vec2
Rotates a vector by an angle in radians.
• v: Vec2
Vec2
• angle: number
number
The angle to rotate the vector by in radians.
A new vector.
Utils/vec2.ts:164