pub fn iou(a: Rect, b: Rect) -> f32
Returns intersection over union (IoU) for two rectangles.
IoU
The result is zero when the union has zero area.