mazth/
bound_sphere.rs

1use std::f64;
2
3use i_bound::BoundType;
4use i_bound::IBound;
5use i_shape::ShapeType;
6
7#[derive(Debug, Clone)]
8pub struct BoundSphere {
9    //todo
10}
11
12impl BoundSphere {
13    pub fn init(_shape_type: ShapeType, _vals: &[f64]) -> BoundSphere {
14        BoundSphere {}
15    }
16}
17
18impl IBound for BoundSphere {
19    fn get_type(&self) -> BoundType {
20        BoundType::Sphere
21    }
22    fn intersect(&self, _other: &dyn IBound) -> bool {
23        unimplemented!();
24    }
25    fn get_shortest_separation(&self, _other: &dyn IBound) -> f64 {
26        unimplemented!();
27    }
28    fn get_bound_data(&self) -> [f64; 32] {
29        unimplemented!();
30    }
31    fn get_union(&mut self, _bounds: &[&dyn IBound]) {
32        unimplemented!();
33    }
34    fn get_centroid(&self) -> [f64; 3] {
35        unimplemented!();
36    }
37}
38
39impl Default for BoundSphere {
40    fn default() -> BoundSphere {
41        unimplemented!();
42    }
43}