diff --git a/src/postprocess.rs b/src/postprocess.rs index 7c2b576..630a777 100644 --- a/src/postprocess.rs +++ b/src/postprocess.rs @@ -2,6 +2,7 @@ use crate::gcode::CommandWord::*; use crate::gcode::*; use lyon_geom::math::{point, vector, F64Point}; +/// Moves all the commands so that they are beyond a specified position pub fn set_origin(commands: &mut [Command], origin: F64Point) { let offset = -get_bounding_box(commands).0.to_vector() + origin.to_vector(); diff --git a/src/turtle.rs b/src/turtle.rs index b66f476..ff2dd36 100644 --- a/src/turtle.rs +++ b/src/turtle.rs @@ -1,4 +1,3 @@ -/// TODO: Documentation use crate::gcode::*; use crate::machine::Machine; use lyon_geom::euclid::{default::Transform2D, Angle};