Function fpvsetup::find_common_aspect_ratio[][src]

pub fn find_common_aspect_ratio(ratio: f64, rounding: f64) -> Option<[f64; 2]>

Finds a common aspect ratio for the given single-number ratio, considering the ratio close enough if the difference is less than the given rounding.