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

    Function composeWorldPose

    • Walk id's parent chain (root first to id last) and fold local poses into a world pose via compose. Returns the world pose for id. Cycle-safe: a visited-set guard breaks if the chain ever loops back to itself.

      compose(parent, child) interprets child as expressed in parent's local frame and returns the equivalent pose in the next frame up. For a standard translation-only rect: world = { x: p.x + c.x, y: p.y + c.y, width: c.width, height: c.height }.

      Type Parameters

      • TPose

      Parameters

      Returns TPose