Skip to main content

intersection_area

Function intersection_area 

Source
pub fn intersection_area(a: &BoundingBox, b: &BoundingBox) -> f32
Expand description

Area of the axis-aligned intersection of two boxes, clamped to >= 0 per side. Mirrors the inter term in ModelPack metrics/tiled.py::_match.