//returns true if it was a glyph that can be repositioned
returns true if it was a glyph that can be repositioned
returns true if it was a glyph that can be repositioned
pub fn reposition_pattern(&mut self) -> bool {
        use GlyphType::*;
        match &mut self.glyph_type {
            Input(meta_pattern) | Output(meta_pattern, _) | Conduit(meta_pattern) => {
                for pat in meta_pattern{
                    for mut a in pat {
                        a.pos = self.pos + rotate(a.pos, self.rot);
                        a.rotate_connections(self.rot);
                    }
                }
                true
            }
            Track(locs) => {
                for a in locs {
                    *a = self.pos + rotate(*a, self.rot);
                }
                true
            }
            _ => false,
        }
    }
pub fn reposition_pattern ( & mut self ) -> bool { use GlyphType :: * ; match & mut self . glyph_type { Input ( meta_pattern ) | Output ( meta_pattern , _ ) | Conduit ( meta_pattern ) => { for pat in meta_pattern { for mut a in pat { a . pos = self . pos + rotate ( a . pos , self . rot ) ; a . rotate_connections ( self . rot ) ; } } true } Track ( locs ) => { for a in locs { * a = self . pos + rotate ( * a , self . rot ) ; } true } _ => false , } }
returns true if it was a glyph that can be repositioned
returns true if it was a glyph that can be repositioned
&mut self