Function rotateAbout

    • Writable angle from pivot to points[0]; write rotates every input about pivot by (target − current) via its Pivotal trait (Vec rotates position, Pose also rotates orientation). pivot is reactive; pass mean(points) to rotate about the cluster's own centroid.

      Type Parameters

      • T extends { x: number; y: number }

      Parameters

      Returns Writable<Num>