From bc78b30b09d02cb081b31a7326777c5981aaa548 Mon Sep 17 00:00:00 2001 From: Marc Planard Date: Tue, 6 Jun 2023 11:32:05 +0200 Subject: [PATCH] refacto transformer with module hierarchy --- src/transformer.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/transformer.rs diff --git a/src/transformer.rs b/src/transformer.rs new file mode 100644 index 0000000..edfea5f --- /dev/null +++ b/src/transformer.rs @@ -0,0 +1,13 @@ +//pub mod common; +pub mod translate; +pub mod replicate; + +use crate::point::Point; + +// re-export transformers to be abe to use it directly from transformer:: +pub use translate::Translate; +pub use replicate::Replicate; + +pub trait Transformers { + fn apply(&self, point_list: &[Point]) -> Vec; +}