Skip to content

rotateVector

rotateVector(vector, radians): Point

Defined in: src/util/misc/vectors.ts:14

Rotates vector with radians

Parameters

vector

Point

The vector to rotate (x and y)

radians

TRadian

The radians of the angle for the rotation

Returns

Point

The new rotated point