refacto transformer with module hierarchy
This commit is contained in:
parent
e899d8061c
commit
bc78b30b09
1 changed files with 13 additions and 0 deletions
13
src/transformer.rs
Normal file
13
src/transformer.rs
Normal file
|
|
@ -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<Point>;
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue