pub(crate) fn compute_global_from_parent(&mut self, parent_translation: &Coordinates) {
        let mut new_global = parent_translation.clone();
        new_global.x += self.local_translation.x;
        new_global.y += self.local_translation.y;
        new_global.z = self.local_translation.z;
        self.global_translation = new_global;
        self.dirty = true;
        self.handle_bounds();
    }
/// Computes the global_translation using the parent as origin
Computes the global_translation using the parent as origin
Computes the global_translation using the parent as origin
pub(crate) fn compute_global_from_parent(&mut self, parent_translation: &Coordinates) {
        let mut new_global = parent_translation.clone();
        new_global.x += self.local_translation.x;
        new_global.y += self.local_translation.y;
        new_global.z = self.local_translation.z;
        self.global_translation = new_global;
        self.dirty = true;
        self.handle_bounds();
    }
pub ( crate ) fn compute_global_from_parent ( & mut self , parent_translation : & Coordinates ) { let mut new_global = parent_translation . clone ( ) ; new_global . x += self . local_translation . x ; new_global . y += self . local_translation . y ; new_global . z = self . local_translation . z ; self . global_translation = new_global ; self . dirty = true ; self . handle_bounds ( ) ; }
Computes the global_translation using the parent as origin
Computes the global_translation using the parent as origin
&mut self
parent_translation
&Coordinates
&mut self
parent_translation
&Coordinates