Skip to Content

@revideo/core


@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

Vector2

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.

Returns

Vector2

© 2026 Haven Technologies, Inc.
Function: rotateVector() – Revideo