fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
16 lines (15 loc) • 523 B
text/typescript
import type { Point } from '../../Point';
import type { TRadian } from '../../typedefs';
/**
* Rotates `point` around `origin` with `radians`
* @deprecated use the Point.rotate
* @param {Point} origin The origin of the rotation
* @param {Point} origin The origin of the rotation
* @param {TRadian} radians The radians of the angle for the rotation
* @return {Point} The new rotated point
*/
export const rotatePoint = (
point: Point,
origin: Point,
radians: TRadian,
): Point => point.rotate(radians, origin);