Skip to main content

quantize_rect

Function quantize_rect 

Source
pub fn quantize_rect(rect: Rect, factor: f64) -> Option<[i64; 4]>
Expand description

quantizeRect: the rectangle, normalized, with its edges moved outwards to multiples of factor. None for a factor below 1 (ValueError).