Skip to main content

centroid_from_bbox

Function centroid_from_bbox 

Source
pub fn centroid_from_bbox(
    x: u32,
    y: u32,
    w: u32,
    h: u32,
    frame: u32,
    area: u32,
) -> ParticleCentroid
Expand description

Centroid of a bounding box (integer mid-point) — convenience for box→particle bridges.