Skip to main content

apply_layer_to_quad

Function apply_layer_to_quad 

Source
pub fn apply_layer_to_quad(
    rect: Rect,
    layer_bounds: Rect,
    layer: &GraphicsLayer,
) -> [[f32; 2]; 4]
Expand description

Transforms a rectangle’s four corners through scale, rotation and perspective.