Skip to main content

rscad_core/
transformations.rs

1use crate::prelude_::*;
2pub mod centered;
3pub mod mirror;
4pub mod offset;
5pub mod pattern;
6pub mod projection;
7pub mod rotate;
8pub mod scale;
9pub mod translate;
10
11pub use centered::*;
12pub use mirror::*;
13pub use offset::*;
14pub use pattern::*;
15pub use projection::*;
16pub use rotate::*;
17pub use scale::*;
18pub use translate::*;
19
20pub trait Transformation {}
21
22impl<T: Object> Transformation for centered::Centered<T> {}
23impl<T: Object> Transformation for mirror::Mirror<T> {}
24impl<T: Object> Transformation for rotate::Rotate<T> {}
25impl<T: Object> Transformation for scale::Scale<T> {}
26impl<T: Object> Transformation for translate::Translate<T> {}