1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use std::f64;

use interface::i_bound::BoundType;
use interface::i_bound::IBound;
use interface::i_shape::ShapeType;

#[derive(Debug)]
#[derive(Clone)]
pub struct BoundSphere {
    //todo
}

impl BoundSphere {
    pub fn init( _shape_type: ShapeType, _vals: &[f64] ) -> BoundSphere {
        BoundSphere {}
    }
}

impl IBound for BoundSphere {
    fn get_type( & self ) -> BoundType {
        BoundType::Sphere
    }
    fn intersect( & self, other: & IBound ) -> bool {
        unimplemented!();
    }
    fn get_shortest_separation( & self, other: & IBound ) -> f64 {
        unimplemented!();
    }
    fn get_bound_data( &self ) -> [f64;32] {
        unimplemented!();
    }
    fn get_union( & mut self, bounds: &[ &IBound ] ) {
        unimplemented!();
    }
    fn get_centroid( & self ) -> [ f64; 3 ] {
        unimplemented!();
    }
}

impl Default for BoundSphere {
    fn default() -> BoundSphere {
        unimplemented!();
    }
}