ecspresso
    Preparing search index...

    Function resolveAnchorPosition

    • Write the top-left screen position of a widget into out.

      Formula: position = anchor * bounds + offset - pivot * size. anchor specifies where on the canvas the widget attaches (0..1 normalized). pivot specifies where on the widget that attachment point lands (0..1 normalized). Writes in place to avoid per-frame allocation.

      Parameters

      • anchor: Readonly<Vector2D>
      • pivot: Readonly<Vector2D>
      • offset: Readonly<Vector2D>
      • bounds: Readonly<{ height: number; width: number }>
      • size: Readonly<{ height: number; width: number }>
      • out: Vector2D

      Returns void