Skip to main content

transform_offset_params

Function transform_offset_params 

Source
fn transform_offset_params(dx: f32, dy: f32, transform: &Affine) -> (f32, f32)
Expand description

Transform an offset’s dx/dy using the affine transformation’s linear part.

§Returns

A tuple of (scaled_dx, scaled_dy) in device space.