weasel API - v0.8.0
    Preparing search index...

    Function rotatePathAround

    • Rotate every coordinate of path about (cx, cy) by rotation radians. A rect promotes to a four-corner polygon (axis-aligned rects can't encode rotation); a polygon keeps its command list and rotates each coord. Returns a fresh PolygonPath; never mutates the input. This is the coordinate-baking companion to poseRotationOfpathInWorld and findShapeSilhouette both apply it so they share one rotation implementation.

      Parameters

      • path: Path
      • cx: number
      • cy: number
      • rotation: number

      Returns PolygonPath