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.
Write the top-left screen position of a widget into
out.Formula: position = anchor * bounds + offset - pivot * size.
anchorspecifies where on the canvas the widget attaches (0..1 normalized).pivotspecifies where on the widget that attachment point lands (0..1 normalized). Writes in place to avoid per-frame allocation.