@revideo/core / types / rotateVector
Function: rotateVector()
rotateVector(
vector,angle,center?):Vector2
Defined in: types/vector-transformations.ts:41
Rotates the vector around a point by the provided angle.
Parameters
vector
The vector to rotate.
angle
number
The angle by which to rotate in degrees.
center?
PossibleVector2 = Vector2.zero
The center of rotation. Defaults to the origin.