Skip to main content

ios

Function ios 

Source
pub fn ios(a: Rect, b: Rect) -> f32
Expand description

Returns intersection over the smaller area (IoS) for two rectangles.

The result is zero when either rectangle has zero area.