pub fn grow_percent(&mut self, percent: i32) {
        if self.min_max_.is_some() {
            let size_x = self.get_high().unwrap()[0] - self.get_low().unwrap()[0];
            let size_y = self.get_high().unwrap()[1] - self.get_low().unwrap()[1];
            let size = if size_x > size_y { size_x } else { size_y };

            let delta = size * super::TypeConverter2::<I, F>::f32_to_f((percent as f32) / 100.0);

            let mut p = self.get_high().unwrap();
            p[0] = p[0] + delta;
            p[1] = p[1] + delta;
            self.update_vertex(p[0], p[1]);
            let mut p = self.get_low().unwrap();
            p[0] = p[0] - delta;
            p[1] = p[1] - delta;
            self.update_vertex(p[0], p[1]);
        }
    }
/// grows the aabb uniformly by some percent.
/// method does nothing if not initialized
grows the aabb uniformly by some percent.
method does nothing if not initialized
grows the aabb uniformly by some percent . method does nothing if not initialized
pub fn grow_percent(&mut self, percent: i32) {
        if self.min_max_.is_some() {
            let size_x = self.get_high().unwrap()[0] - self.get_low().unwrap()[0];
            let size_y = self.get_high().unwrap()[1] - self.get_low().unwrap()[1];
            let size = if size_x > size_y { size_x } else { size_y };
            let delta = size * super::TypeConverter2::<I, F>::f32_to_f((percent as f32) / 100.0);
            let mut p = self.get_high().unwrap();
            p[0] = p[0] + delta;
            p[1] = p[1] + delta;
            self.update_vertex(p[0], p[1]);
            let mut p = self.get_low().unwrap();
            p[0] = p[0] - delta;
            p[1] = p[1] - delta;
            self.update_vertex(p[0], p[1]);
        }
    }
pub fn grow_percent ( & mut self , percent : i32 ) { if self . min_max_ . is_some ( ) { let size_x = self . get_high ( ) . unwrap ( ) [ 0 ] - self . get_low ( ) . unwrap ( ) [ 0 ] ; let size_y = self . get_high ( ) . unwrap ( ) [ 1 ] - self . get_low ( ) . unwrap ( ) [ 1 ] ; let size = if size_x > size_y { size_x } else { size_y } ; let delta = size * super :: TypeConverter2 :: < I , F > :: f32_to_f ( ( percent as f32 ) / 100.0 ) ; let mut p = self . get_high ( ) . unwrap ( ) ; p [ 0 ] = p [ 0 ] + delta ; p [ 1 ] = p [ 1 ] + delta ; self . update_vertex ( p [ 0 ] , p [ 1 ] ) ; let mut p = self . get_low ( ) . unwrap ( ) ; p [ 0 ] = p [ 0 ] - delta ; p [ 1 ] = p [ 1 ] - delta ; self . update_vertex ( p [ 0 ] , p [ 1 ] ) ; } }
grows the aabb uniformly by some percent.
grows the aabb uniformly by some percent .
&mut self
percent
i32