equal
deleted
inserted
replaced
38 FlipMirror => Mirror, |
38 FlipMirror => Mirror, |
39 } |
39 } |
40 } |
40 } |
41 |
41 |
42 pub fn is_mirrored(&self) -> bool { |
42 pub fn is_mirrored(&self) -> bool { |
|
43 use SymmetryTransform::*; |
43 match self { |
44 match self { |
44 Id => false, |
45 Id => false, |
45 Flip => false, |
46 Flip => false, |
46 Mirror => true, |
47 Mirror => true, |
47 FlipMirror => true, |
48 FlipMirror => true, |
48 } |
49 } |
49 } |
50 } |
50 |
51 |
51 pub fn is_flipped(&self) -> bool { |
52 pub fn is_flipped(&self) -> bool { |
|
53 use SymmetryTransform::*; |
52 match self { |
54 match self { |
53 Id => false, |
55 Id => false, |
54 Flip => true, |
56 Flip => true, |
55 Mirror => false, |
57 Mirror => false, |
56 FlipMirror => true, |
58 FlipMirror => true, |