aninest-root / Vec2 / rotateAround
rotateAround()
ts
function rotateAround(
v,
pivot,
angle): Vec2;
Defined in: Utils/vec2.ts:178
Rotates a vector around a pivot point by an angle in radians.
Parameters
v
The vector to rotate.
pivot
The point to rotate the vector around.
angle
number
The angle to rotate the vector by in radians.
Returns
A new vector.