lj_rust/src/transformer.rs

22 lines
478 B
Rust
Raw Normal View History

//pub mod common;
mod translate;
mod replicate;
mod rotate;
mod flip_horizontal;
mod flip_vertical;
2023-06-10 16:47:04 +00:00
mod grid;
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 use rotate::Rotate;
pub use flip_horizontal::FlipHorizontal;
pub use flip_vertical::FlipVertical;
2023-06-10 16:47:04 +00:00
pub use grid::Grid;
pub trait Transformers {
fn apply(&self, point_list: &[Point]) -> Vec<Point>;
}