UNPKG

@mlightcad/libredwg-web

Version:

A DWG/DXF JavaScript parser based on libredwg

9 lines 249 B
export const rotate = (point, angle) => { const cos = Math.cos(angle); const sin = Math.sin(angle); return { x: point.x * cos - point.y * sin, y: point.x * sin + point.y * cos, }; }; //# sourceMappingURL=rotate.js.map