fit_box

Function fit_box 

Source
pub fn fit_box(src_rect: &Box2D, dst_rect: &Box2D, style: FitStyle) -> Transform
Expand description

Computes a transform that fits a rectangle into another one.