pub fn apply_layer_to_quad( rect: Rect, layer_bounds: Rect, layer: &GraphicsLayer, ) -> [[f32; 2]; 4]
Transforms a rectangle’s four corners through scale, rotation and perspective.