Skip to main content

rel_transform

Function rel_transform 

Source
fn rel_transform(parent_abs: Transform, abs: Transform) -> DAffine2
Expand description

The transform of a node relative to its parent: parent_abs^-1 * abs.

A singular (non-invertible) parent — e.g. scale(0) — has no relative form; we warn and fall back to the identity, leaving the child’s data in its raw coordinates.