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 poseRotationOf — pathInWorld and findShapeSilhouette both
apply it so they share one rotation implementation.
Rotate every coordinate of
pathabout(cx, cy)byrotationradians. Arectpromotes to a four-corner polygon (axis-aligned rects can't encode rotation); a polygon keeps its command list and rotates each coord. Returns a freshPolygonPath; never mutates the input. This is the coordinate-baking companion toposeRotationOf—pathInWorldandfindShapeSilhouetteboth apply it so they share one rotation implementation.