Signed Q16 values use 65536 units per pixel/scale/turn.
x/y are the single-contact position or the two-contact midpoint; dx/dy are translation from the down position or initial midpoint (not from the previous call). scale is distance / initial distance, and rotation is the shortest signed turn from the initial vector, in [-32768,32768). Screen-positive y means positive rotation is clockwise. Pinch uses the first two contacts; id is the first contact's ID. Non-pinch scale is 65536 and rotation is zero. Combined transition flags describe the new pinch geometry. At coincident positions an active pinch reports scale/rotation zero. Fractional results truncate toward zero; lengths use normalized integer square root. Flags zero means no recognized result; other members are then unspecified. Integer square root and CORDIC make results identical on native and wasm.