[][src]Function gen_gcode::move_xy_arc_ij

pub fn move_xy_arc_ij(
    dest: Option<Point2d>,
    x_offset: Option<f32>,
    y_offset: Option<f32>,
    flow_rate: Option<f32>,
    ccw: bool
) -> String

Returns a G2 or G3 command as a String

Examples

extern crate gen_gcode;
use gen_gcode::{Point2d, move_xy};
 
let p = Point2d { x: 125.0, y: 0.0 };
// Create a Clockwise 180 degree Arc starting at 0,0 ending at 125,0 with center point 62.5,0
let gcode = move_xy_arc_ij(Some(p), Some(62.5), None, None, false);
assert_eq!("G2 X125 Y0 I62.5", gcode);