update some docstrings

master
Sameer Puri 5 years ago
parent 490e7100eb
commit 0aad717f03

@ -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();

@ -1,4 +1,3 @@
/// TODO: Documentation
use crate::gcode::*;
use crate::machine::Machine;
use lyon_geom::euclid::{default::Transform2D, Angle};

Loading…
Cancel
Save