From 0aad717f0365c77f369503e2f5d61168b6662898 Mon Sep 17 00:00:00 2001 From: Sameer Puri Date: Sun, 6 Sep 2020 19:50:13 -0400 Subject: [PATCH] update some docstrings --- src/postprocess.rs | 1 + src/turtle.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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};