Skip to main content

compose_transform

Function compose_transform 

Source
pub fn compose_transform(
    ops: &[TransformOp],
    own_w: f32,
    own_h: f32,
) -> [f32; 16]
Expand description

Compose parsed ops into a single column-major 4x4 matrix.

own_w / own_h are the element’s border-box size, used to resolve % lengths in translate functions (0.0 when the box is unknown at build time).