[−][src]Function gen_gcode::set_pos_2d
pub fn set_pos_2d(pos: Point2d, extrude_pos: Option<f32>) -> String
Returns a G92 command to set the current nozzle/tool possition in the XY plane as a String
Examples
extern crate gen_gcode; use gen_gcode::{Point2d, move_xy}; let p = Point2d { x: 125.0, y: 125.0 }; let gcode = set_pos_2d(p, None); assert_eq!("G92 X125 Y125", gcode);