fix code + dummy dac

This commit is contained in:
Marc Planard 2023-06-29 23:24:56 +02:00
parent ce86a1cecb
commit f307fea63c
16 changed files with 88 additions and 26 deletions

View file

@ -7,6 +7,7 @@ mod flip_vertical;
mod grid;
use crate::point::Point;
use crate::worldstate::WorldState;
// re-export transformers to be abe to use it directly from transformer::
pub use translate::Translate;
@ -17,5 +18,9 @@ pub use flip_vertical::FlipVertical;
pub use grid::Grid;
pub trait Transformers {
fn apply(&self, point_list: &[Point]) -> Vec<Point>;
fn apply(
&self,
point_list: &[Point],
world_state: &WorldState
) -> Vec<Point>;
}