load transformers from config file
This commit is contained in:
parent
80ec78efd3
commit
ad3b3803ce
7 changed files with 60 additions and 11 deletions
|
|
@ -1,10 +1,11 @@
|
|||
use crate::Transformers;
|
||||
use crate::point::Point;
|
||||
use serde::{Serialize,Deserialize};
|
||||
|
||||
/// Replicate
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug,Clone,Copy)]
|
||||
#[derive(Serialize,Deserialize,Debug,Clone,Copy)]
|
||||
pub enum Replicate {
|
||||
Until(usize),
|
||||
Times(usize)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
use crate::Transformers;
|
||||
use crate::point::Point;
|
||||
use serde::{Serialize,Deserialize};
|
||||
|
||||
/// Translate
|
||||
|
||||
#[derive(Debug,Clone,Copy)]
|
||||
#[derive(Serialize,Deserialize,Debug,Clone,Copy)]
|
||||
pub struct Translate {
|
||||
x: f32,
|
||||
y: f32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue