Skip to main content

Function: rotateAroundPoint()

rotateAroundPoint(p, c, angleRadians): object

Rotates a point around another point by an angle.

Parameters​

p​

Point

The point to rotate.

c​

Point

The point to rotate around..

angleRadians​

number

The angle to rotate.

Returns​

object

A new point transformed by the rotation.

x​

x: number

y​

y: number