{
  "version": 3,
  "sources": ["../../src/util/rotate.ts"],
  "sourcesContent": ["import { Point2D } from '../types'\n\n/**\n * Rotate a point by the given angle.\n *\n * @param p the point\n * @param angle the rotation angle in radians\n */\nexport default function rotate(p: Point2D, angle: number): Point2D {\n  return {\n    x: p.x * Math.cos(angle) - p.y * Math.sin(angle),\n    y: p.y * Math.cos(angle) + p.x * Math.sin(angle),\n  }\n}\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQe,SAAR,OAAwB,GAAY,OAAwB;AACjE,SAAO;AAAA,IACL,GAAG,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,EAAE,IAAI,KAAK,IAAI,KAAK;AAAA,IAC/C,GAAG,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,EAAE,IAAI,KAAK,IAAI,KAAK;AAAA,EACjD;AACF;",
  "names": []
}
