Skip to main content

fit

Function fit 

Source
pub fn fit(
    ww: usize,
    wh: usize,
    aw: usize,
    ah: usize,
) -> (usize, usize, usize, usize)
Expand description

Largest rectangle of aspect aw:ah centred in ww x wh: (x, y, w, h).