Function re_ui::zoom_pan_area::fit_to_rect_in_scene

source ยท
pub fn fit_to_rect_in_scene(
    rect_in_ui: Rect,
    rect_in_scene: Rect,
) -> TSTransform
Expand description

Creates a transformation that fits a given scene rectangle into the available screen size.