Skip to main content

centroid

Function centroid 

Source
pub fn centroid<const N: usize>(
    points: impl IntoIterator<Item = [f64; N]>,
) -> Option<[f64; N]>
Expand description

The mean of points, summed in their order and then divided by their count, or None if there are no points.