Skip to content

rotatePoint

rotatePoint(point, origin, radians): Point

Defined in: src/util/misc/rotatePoint.ts:11

Rotates point around origin with radians

Parameters

point

Point

origin

Point

The origin of the rotation

radians

TRadian

The radians of the angle for the rotation

Returns

Point

The new rotated point