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

    Function translatePath

    • Translate a path by (dx, dy). Returns a new instance — the kit's pose model treats poses as immutable to keep React state-update semantics predictable. Polygon coords are copied into a fresh Float32Array.

      Parameters

      • path: Path
      • dx: number
      • dy: number

      Returns Path