pub fn compute_bounding_box(
points: &ArrayView2<'_, f64>,
vertex_indices: &[usize],
) -> (Vec<f64>, Vec<f64>)Expand description
Compute the bounding box of a set of high-dimensional points
§Arguments
points- Input points arrayvertex_indices- Indices of points to include
§Returns
- Tuple of (min_coords, max_coords) vectors
§Examples
use scirs2_spatial::convex_hull::geometry::high_dimensional::compute_bounding_box;
use scirs2_core::ndarray::array;
let points = array![
[0.0, 5.0, -1.0],
[3.0, 0.0, 2.0],
[1.0, 3.0, 0.0]
];
let vertices = vec![0, 1, 2];
let (min_coords, max_coords) = compute_bounding_box(&points.view(), &vertices);
assert_eq!(min_coords, vec![0.0, 0.0, -1.0]);
assert_eq!(max_coords, vec![3.0, 5.0, 2.0]);