Home > @jsplumb/util > rotatePoint
#
rotatePoint() functionRotate the given point around the given center, by the given rotation (in degrees)
Signature:
export declare function rotatePoint(point: PointXY, center: PointXY, rotation: number): RotatedPointXY;
#
ParametersParameter | Type | Description |
---|---|---|
point | PointXY | |
center | PointXY | |
rotation | number |
Returns:
RotatedPointXY
An object consisting of the rotated point, followed by cos theta and sin theta.